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

# Delete Tag Group

> Delete a user-defined tag group. By default the tags are kept and simply ungrouped (their `group` becomes null); pass delete_tags=true to delete the tags themselves and detach them from every prompt. System groups (branding/intentType) cannot be deleted.



## OpenAPI

````yaml https://api.peec.ai/customer/v1/openapi/json delete /tag-groups
openapi: 3.0.3
info:
  title: Peec AI Customer API
  description: Development documentation
  version: 1.0.0
  contact:
    name: Peec AI Team
    email: support@peec.ai
servers:
  - url: https://api.peec.ai/customer/v1
security: []
paths:
  /tag-groups:
    delete:
      tags:
        - Project
      summary: Delete Tag Group
      description: >-
        Delete a user-defined tag group. By default the tags are kept and simply
        ungrouped (their `group` becomes null); pass delete_tags=true to delete
        the tags themselves and detach them from every prompt. System groups
        (branding/intentType) cannot be deleted.
      operationId: deleteTag-groups
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                group:
                  type: string
                  example: persona
                  description: The group name to delete
                delete_tags:
                  default: false
                  example: false
                  description: >-
                    When true, the group's tags are deleted (and removed from
                    all prompts) instead of just being ungrouped. Defaults to
                    false.
                  type: boolean
              required:
                - group
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                group:
                  type: string
                  example: persona
                  description: The group name to delete
                delete_tags:
                  default: false
                  example: false
                  description: >-
                    When true, the group's tags are deleted (and removed from
                    all prompts) instead of just being ungrouped. Defaults to
                    false.
                  type: boolean
              required:
                - group
          multipart/form-data:
            schema:
              type: object
              properties:
                group:
                  type: string
                  example: persona
                  description: The group name to delete
                delete_tags:
                  default: false
                  example: false
                  description: >-
                    When true, the group's tags are deleted (and removed from
                    all prompts) instead of just being ungrouped. Defaults to
                    false.
                  type: boolean
              required:
                - group
      responses:
        '200':
          description: >-
            Group deleted successfully. By default its tags are kept and
            ungrouped; with delete_tags=true they are deleted.
          content:
            application/json:
              schema:
                type: object
                properties:
                  tag_count:
                    type: number
                required:
                  - tag_count
                description: >-
                  Group deleted successfully. By default its tags are kept and
                  ungrouped; with delete_tags=true they are deleted.
        '404':
          description: Response for status 404
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                required:
                  - message
      security:
        - APIKeyHeader: []
        - APIKeyQuery: []
        - BearerAuth: []
components:
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
    APIKeyQuery:
      type: apiKey
      in: query
      name: api_key
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````