Ubuntu – Remove a locale in Ubuntu

localizationUbuntu

I accidentally add a locale, e.g. sudo locale-gen zh_TW

e.g. locale -a

zh_TW

But how to remove it?

Best Answer

I think you can do this by editing /var/lib/locales/supported.d/local and removing that locale. Then run locale-gen to regenerate the compiled locales.