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

> Delete a tag

## Path Parameters

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

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

<ParamField path="tagId" type="string" required>
  Tag ID
</ParamField>

## Response

```json theme={null}
{
  "message": "Tag successfully deleted",
  "id": "tag123"
}
```

<Note>
  A tag cannot be deleted if it is currently in use by any resources (components, content, assets). Remove the tag from all resources before deleting.
</Note>

## Error Responses

### Tag Not Found

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

### Tag In Use

```json theme={null}
{
  "error": {
    "code": "TAG_IN_USE",
    "message": "Cannot delete tag that is in use by resources"
  }
}
```

## Code Examples

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

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

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