> ## 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.

# Delete Content Type

> Delete a content type

## Path Parameters

<ParamField path="organizationId" type="string" required>
  Organization ID
</ParamField>

<ParamField path="projectId" type="string" required>
  Project ID
</ParamField>

<ParamField path="id" type="string" required>
  Content Type ID
</ParamField>

## Response

```json theme={null}
{
  "message": "Content type successfully deleted",
  "id": "ct123"
}
```

<Warning>
  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.
</Warning>

## Error Responses

### Content Type Not Found

```json theme={null}
{
  "error": {
    "code": "NOT_FOUND",
    "message": "Content type not found"
  }
}
```

### Content Type Has Content

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

## Code Examples

<CodeGroup>
  ```bash cURL theme={null}
  curl -X DELETE "https://api.metabind.ai/app/v1/organizations/org123/projects/proj456/content-types/ct123" \
    -H "Authorization: Bearer YOUR_JWT"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(
    'https://api.metabind.ai/app/v1/organizations/org123/projects/proj456/content-types/ct123',
    {
      method: 'DELETE',
      headers: {
        'Authorization': 'Bearer YOUR_JWT'
      }
    }
  );

  const result = await response.json();
  console.log(result.message);
  ```
</CodeGroup>
