Delete content
DELETE
/cms/{type}/{language}/{key}DELETE
/internal/cms/{type}/{language}/{key}alpha
https://api.sandbox.ovok.comDelete Content
Delete a CMS content entry identified by its language and key.
If the specified language is the project's default language, all translations sharing the same key are deleted as well. If it is a non-default language, only that single translation is removed.
Path Parameters
| Parameter | Description | Example |
|---|---|---|
type | Content type (e.g. article, faq, exercise) | article |
language | ISO language code of the content to delete | en-US |
key | Unique content key that links translations across languages | article-my-blog-a1b2c3d4 |
Example cURL request
curl -X DELETE \
--url 'https://api.dev.ovok.com/cms/article/en-US/article-my-blog-a1b2c3d4' \
-H 'Authorization: Bearer <token>'
Side Effects: Deleting the default-language entry cascades to all related language variants. Deleting a non-default language entry only removes that single translation.
Notes: The language provided in the path is validated against the project's configured locales before deletion proceeds.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
type | path | string | yes | |
language | path | string | yes | |
key | path | string | yes | A key that is used to identify the content between languages. |
Responses
| Code | Description |
|---|---|
200 | Success. |
400 | The request could not be operated by the server. |
401 | The resource owner or authorization server denied the request. |
404 | The requested resource could not be found. |
422 | The request could not be validated by the server. |
500 | The server encountered an unexpected condition. Please try again later. |