Remove a translation language is a WordPress ability from TranslatePress — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.
Install Free Plugin →Remove a translation language
DestructiveRemove a configured translation language from TranslatePress.
Requires the TranslatePress plugin on WordPress 6.9+ (or the Abilities API feature plugin). All abilities require the current user to have the 'manage_options' capability.
What it does
This ability removes a language from TranslatePress's configured translation-languages list, publish-languages list, and URL slug mapping, then persists the change through the plugin's settings sanitizer. It refuses to remove a language that isn't currently configured, and it refuses to remove the site's default language — a different language must be promoted to default first via the set-default-language ability. On success it returns the removed code and the updated list of remaining translation languages. The ability's Abilities API annotations mark it destructive.
See it in action
You ask your AI assistant
"Remove Spanish (es_ES) as a translation language from my TranslatePress site."
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| language_code | string | Yes | Locale code of the language to remove. |
Returns
An object with the removed language code and the full array of remaining translation language codes.
Permission
The current user must have the 'manage_options' capability; otherwise the ability returns a 403 WP_Error.
More TranslatePress abilities
Add a translation language
Add a new translation language to TranslatePress, subject to the current license's language limit.
Enable Automatic Translation
Turns on TranslatePress's Automatic Translation, optionally selecting which translation engine to use.
List available language codes
Return the full catalog of locale codes TranslatePress recognizes, each with its English name.
List configured languages
Retrieve the languages currently configured in TranslatePress, including which is the default and which are published.
Set the default language
Promote an already-configured language to be TranslatePress's site default.
Set TranslatePress license key
Save a TranslatePress license key and trigger a live validation check against TranslatePress's licensing servers.