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

Documentation Index

Fetch the complete documentation index at: https://docs.metabind.ai/llms.txt

Use this file to discover all available pages before exploring further.

Path Parameters

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

Response

{
  "message": "Content type 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 Has Content

{
  "error": {
    "code": "CONTENT_TYPE_HAS_CONTENT",
    "message": "Cannot delete content type that has associated content. Delete all content using this type first."
  }
}

Code Examples

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