Skip to main content

Delete content

DELETE /cms/{type}/{language}/{key}
DELETE /internal/cms/{type}/{language}/{key}
alphahttps://api.sandbox.ovok.com

Delete 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

ParameterDescriptionExample
typeContent type (e.g. article, faq, exercise)article
languageISO language code of the content to deleteen-US
keyUnique content key that links translations across languagesarticle-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

NameInTypeRequiredDescription
typepathstringyes
languagepathstringyes
keypathstringyesA key that is used to identify the content between languages.

Responses

CodeDescription
200Success.
400The request could not be operated by the server.
401The resource owner or authorization server denied the request.
404The requested resource could not be found.
422The request could not be validated by the server.
500The server encountered an unexpected condition. Please try again later.