> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usefini.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete tag

> Delete one tag by tag ID.

Deletes one tag.

<Note>
  The `{id}` path segment is the tag ID on this route, not the tag group ID.
</Note>

## Headers

<ParamField header="Authorization" type="string" required>
  Bearer token containing your Fini workspace API key. Format: `Bearer fini_...` The key needs `write` scope.
</ParamField>

## Path parameters

<ParamField path="id" type="string" required>
  Tag ID to delete.
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl --request DELETE \
    --url 'https://api-prod.usefini.com/v2/tag-groups/0dc53764-a417-4a4f-b7f4-63149529f530/tags/public' \
    --header 'Authorization: Bearer fini_your_api_key'
  ```

  ```python Python theme={null}
  import requests

  tag_id = "0dc53764-a417-4a4f-b7f4-63149529f530"
  response = requests.delete(
      f"https://api-prod.usefini.com/v2/tag-groups/{tag_id}/tags/public",
      headers={"Authorization": "Bearer fini_your_api_key"},
  )
  result = response.json()
  ```

  ```javascript Node.js theme={null}
  const tagId = "0dc53764-a417-4a4f-b7f4-63149529f530";

  const response = await fetch(
    `https://api-prod.usefini.com/v2/tag-groups/${tagId}/tags/public`,
    {
      method: "DELETE",
      headers: {
        Authorization: "Bearer fini_your_api_key",
      },
    }
  );
  const result = await response.json();
  ```
</RequestExample>

## Response

<ResponseField name="success" type="boolean">
  `true` when the delete completed successfully.
</ResponseField>

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "success": true
  }
  ```
</ResponseExample>

<Note>
  Current controller behavior: unknown tag IDs currently surface as `500 Internal Server Error` on this route. Tags in Fini-managed groups are also not part of the supported write contract.
</Note>

## Errors

<AccordionGroup>
  <Accordion title="401 Unauthorized" icon="lock">
    The API key is missing, malformed, revoked, or invalid.
  </Accordion>

  <Accordion title="403 Forbidden" icon="shield-halved">
    The API key does not include the `write` scope required for this route.
  </Accordion>

  <Accordion title="500 Internal Server Error" icon="triangle-exclamation">
    Fini failed while resolving the tag or deleting it from storage.
  </Accordion>
</AccordionGroup>
