Skip to main content
DELETE
/
v1
/
organizations
/
{organizationId}
/
projects
/
{projectId}
/
content-types
/
{id}
Delete Content Type
curl --request DELETE \
  --url https://api.example.com/v1/organizations/{organizationId}/projects/{projectId}/content-types/{id}

Path Parameters

organizationId
string
required
Organization ID
projectId
string
required
Project ID
id
string
required
Content Type ID

Response

{
  "message": "ContentType successfully deleted",
  "id": "ct123"
}
Deleting a content type will prevent new content from being created with this type. Existing content that uses this type will still be accessible but cannot be updated to use the deleted type.

Error Responses

Content Type Not Found

{
  "error": {
    "code": "NOT_FOUND",
    "message": "Content type not found"
  }
}

Content Type In Use

{
  "error": {
    "code": "CONTENT_TYPE_IN_USE",
    "message": "Cannot delete content type that is in use",
    "details": {
      "contentCount": 15
    }
  }
}

Code Examples

curl -X DELETE "https://api.metabind.ai/v1/organizations/org123/projects/proj456/content-types/ct123" \
  -H "Authorization: Bearer YOUR_API_KEY"