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

# Delete Tag

> Delete one value from a tag group. A value assigned to entities must be reassigned first: pass `reassignToTagOId` (an existing value in the same group) or `reassignToNewValueName`. A group must keep at least one value — delete the group instead.



## OpenAPI

````yaml delete /api/v2/tag/delete
openapi: 3.0.0
info:
  version: 5.4.0
  title: Octave API
  description: API for Octave workspace management and AI-powered content generation
servers:
  - url: https://app.octavehq.com
security:
  - ApiKeyAuth: []
paths:
  /api/v2/tag/delete:
    delete:
      tags:
        - Tag
      summary: Delete Tag
      description: >-
        Delete one value from a tag group. A value assigned to entities must be
        reassigned first: pass `reassignToTagOId` (an existing value in the same
        group) or `reassignToNewValueName`. A group must keep at least one value
        — delete the group instead.
      operationId: deleteTag
      parameters:
        - schema:
            type: string
            minLength: 1
            description: Tag OId
            example: tag_1234
          required: true
          description: Tag OId
          name: oId
          in: query
        - schema:
            type: string
            description: >-
              Move this value's assignments to this existing value in the same
              group before deleting
          required: false
          description: >-
            Move this value's assignments to this existing value in the same
            group before deleting
          name: reassignToTagOId
          in: query
        - schema:
            type: string
            description: >-
              Create a value with this name in the same group and move this
              value's assignments to it. Ignored when reassignToTagOId is given.
          required: false
          description: >-
            Create a value with this name in the same group and move this
            value's assignments to it. Ignored when reassignToTagOId is given.
          name: reassignToNewValueName
          in: query
      responses:
        '200':
          description: Delete Tag response
          content:
            application/json:
              schema:
                type: object
                properties:
                  _metadata:
                    $ref: '#/components/schemas/Metadata'
                  data:
                    type: object
                    properties:
                      oId:
                        type: string
                      success:
                        type: boolean
                    required:
                      - oId
                      - success
                required:
                  - _metadata
                  - data
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                type: object
                properties:
                  _metadata:
                    $ref: '#/components/schemas/Metadata'
                  message:
                    type: string
                required:
                  - _metadata
                  - message
        '404':
          description: Tag group, tag or entity not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  _metadata:
                    $ref: '#/components/schemas/Metadata'
                  message:
                    type: string
                required:
                  - _metadata
                  - message
      deprecated: false
components:
  schemas:
    Metadata:
      type: object
      properties:
        usage:
          type: number
          default: 0
          example: 0
          description: API usage
        requestId:
          type: string
          example: requestId
          description: Request ID
        message:
          type: string
          example: message
          description: Message
        timestamp:
          type: string
          example: '2021-01-01T00:00:00.000Z'
          description: Timestamp
      required:
        - requestId
        - timestamp
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: api_key

````