Skip to main content

Delete a content type

Log in to add to favourites
This endpoint deletes a content type from a specific project. Once deleted, the content type is permanently removed and cannot be retrieved, as it is not moved to the recycle bin.
DELETE/api/management/projects/{projectId}/contenttypes/{contentTypeId}

Parameters

NameParameter typeTypeDescription
projectId(required)pathstringThe project identifier found in the project overview screen of the management console.
contentTypeId(required)pathstringThe content type identifier.

Responses

HTTP status codeReasonModel
204Success
401UnauthorizedError
404Project not foundError
404Content type not foundError
500Internal server errorError

Examples

An example of deleting a content type called enquiryForm from the website project

cURL
curl --location --request DELETE 'https://cms-{alias}.cloud.contensis.com/api/management/projects/website/contenttypes/enquiryform' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {token}'

Still need help?

If you still need help after reading this article, don't hesitate to reach out to the Contensis community on Slack or raise a support ticket to get help from our team.
New support request