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

Destructive
TranslatePress Content & Tools translatepress/remove-language

Remove 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.

Newsletter

The AI + WordPress space moves fast. Keep up.

New tools, workflow ideas, and product updates — be the first to know what's next.

No spam, unsubscribe anytime.