> ## 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. The request is refused with `CONTENT_TYPE_HAS_CONTENT` while any content that is not deleted uses this type, unless you pass `?force=true`, which permanently deletes the type and all its versions.
</Warning>

## Error Responses

### Content Type Not Found

```json theme={null}
{
  "error": {
    "code": "CONTENT_TYPE_NOT_FOUND",
    "message": "ContentType with ID ct123 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/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/types/ct123',
    {
      method: 'DELETE',
      headers: {
        'Authorization': 'Bearer YOUR_JWT'
      }
    }
  );

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


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.