Remove a language
delete
https://api.flactrum.com/v1/languages/{language}
Every translation written in that language goes with it. The default language cannot be removed.
| Required scope | languages.write |
| Success status | 204 |
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| language * | path | string | ULID of the record. |
Examples
Recorded from the test suite — these are real requests and their real responses.
curl -X DELETE 'https://api.flactrum.com/v1/languages/01m43sk7fr1981v4cs912rt96s' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Accept: application/json'
HTTP 204
(empty body)
curl -X DELETE 'https://api.flactrum.com/v1/languages/01m43sk7sjp8bkkx2w35vp2v6s' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Accept: application/json'
HTTP 409 · application/json
{
"error": {
"code": "conflict",
"message": "The default language cannot be deleted. Make another language the default first."
}
}