API: Delete translation keys

Last modified: January 26, 2023Author: Jakub Pomykała

This endpoint allows you to delete translation keys. The usage of this endpoint requires authorization.

Endpoint

DELETE
https://api.simplelocalize.io
/api/v1/translations

Sample request

curl
    --location
    --request DELETE 'https://api.simplelocalize.io/api/v1/translations' \
    --header 'X-SimpleLocalize-Token: <API_KEY>' \
    --header 'Content-Type: application/json' \
    --data-raw '{
        "content": [
            {
                "key": "HELLO_WORLD"
            }
        ]
    }'

Request fields

  • key - translation key
  • namespace - translation namespace

Response

{
  "msg": "OK",
  "status": 200,
  "data": {
    "deletedTranslations": 1
  }
}

Response fields

  • deletedTranslations - informs about deleted translation keys