Delete a Language

Overview

This endpoint allows you to delete a language from your system, provided it is not currently set as the default language.

DELETE /api/languages/{lang_id}/

Request Format

Send a DELETE request to the language endpoint with the language ID in the URL path:

DELETE /api/languages/3/
Important: You cannot delete a language that is specified as the Backend default language under Settings → Appearance.

Response Format

Status Code Description
204 No Content The language has been deleted successfully.
400 Bad Request The language couldn't be deleted (e.g., it's the default language).
404 Not Found The specified language doesn't exist.