Delete content
Trashes or purges a piece of Content, based on its ContentType and ContentStatus.
There are three cases:
-
If the content is trashable and its status is current, it will be trashed.
-
If the content is trashable, its status is trashed and the status query parameter in the request is trashed, the content will be purged from the trash and deleted permanently.
-
If the content is not trashable it will be deleted permanently without being trashed.
/rest/api/content/{id}idstringrequiredthe id of the content.
statusstringthe status of the content to be deleted.
Returned if successfully trashed.
Returned if successfully purged.
Returned if there is no content with the given id, or if the calling user does not have permission to trash or purge the content.
statusCodeinteger<int32>dataValidationResultShow propertiesHide properties
authorizedbooleanvalidbooleanerrorsobjectsuccessfulbooleanallowedInReadOnlyModebooleanmessagestringreasonstringReturned if there is a stale data object conflict when trying to delete a draft.
statusCodeinteger<int32>dataValidationResultShow propertiesHide properties
authorizedbooleanvalidbooleanerrorsobjectsuccessfulbooleanallowedInReadOnlyModebooleanmessagestringreasonstring