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

> Delete a custom tag group.

Deletes a custom tag group.

<Note>
  Use this route only for workspace-owned custom groups you created. Tag-level routes live on [Tags](/en/api-reference/tags).
</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 group ID to delete.
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl --request DELETE \
    --url 'https://api-prod.usefini.com/v2/tag-groups/f770d0bb-d5ea-44e7-a92a-fcfa2d5a32d5/public' \
    --header 'Authorization: Bearer fini_your_api_key'
  ```

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

  tag_group_id = "f770d0bb-d5ea-44e7-a92a-fcfa2d5a32d5"
  response = requests.delete(
      f"https://api-prod.usefini.com/v2/tag-groups/{tag_group_id}/public",
      headers={"Authorization": "Bearer fini_your_api_key"},
  )
  result = response.json()
  ```

  ```javascript Node.js theme={null}
  const tagGroupId = "f770d0bb-d5ea-44e7-a92a-fcfa2d5a32d5";

  const response = await fetch(
    `https://api-prod.usefini.com/v2/tag-groups/${tagGroupId}/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 IDs and attempts to delete mandatory groups currently surface as `500 Internal Server Error` on this public route.
</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 deleting the tag group. Unknown or non-deletable IDs currently surface here as well.
  </Accordion>
</AccordionGroup>
