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

# Delete tag value

> Soft-delete a grouped tag (key, value) and remove that label from every workflow carrying it (cascade). The value rides in the body so values containing '/' stay addressable. Returns how many workflows the label was removed from.



## OpenAPI

````yaml /api-reference/openapi.json delete /v1/tag-values/{key}
openapi: 3.1.0
info:
  title: Skyvern API
  description: API for Skyvern
  version: 1.0.0
servers:
  - url: https://api.skyvern.com
    x-fern-server-name: Cloud
  - url: https://api-staging.skyvern.com
    x-fern-server-name: Staging
  - url: http://localhost:8000
    x-fern-server-name: Local
security: []
paths:
  /v1/tag-values/{key}:
    delete:
      tags:
        - Tags
      summary: Delete tag value
      description: >-
        Soft-delete a grouped tag (key, value) and remove that label from every
        workflow carrying it (cascade). The value rides in the body so values
        containing '/' stay addressable. Returns how many workflows the label
        was removed from.
      operationId: delete_tag_value_v1_tag_values__key__delete
      parameters:
        - name: key
          in: path
          required: true
          schema:
            type: string
            description: Tag key (group)
            examples:
              - env
            title: Key
          description: Tag key (group)
        - name: x-api-key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Skyvern API key for authentication. API key can be found at
              https://app.skyvern.com/settings.
            title: X-Api-Key
          description: >-
            Skyvern API key for authentication. API key can be found at
            https://app.skyvern.com/settings.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TagValueDelete'
      responses:
        '200':
          description: Successfully deleted tag value
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TagValueDeleteResponse'
        '404':
          description: Tag value not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    TagValueDelete:
      properties:
        value:
          type: string
          title: Value
          description: Tag value (label) under the key to soft-delete.
      type: object
      required:
        - value
      title: TagValueDelete
      description: >-
        Body for ``DELETE /v1/tag-values/{key}``. The value rides in the body,
        not the

        path, so values containing ``/`` stay addressable.
    TagValueDeleteResponse:
      properties:
        key:
          type: string
          title: Key
        value:
          type: string
          title: Value
        removed_from_workflow_count:
          type: integer
          title: Removed From Workflow Count
        removed_from_run_count:
          type: integer
          title: Removed From Run Count
          default: 0
        removed_count:
          type: integer
          title: Removed Count
          default: 0
      type: object
      required:
        - key
        - value
        - removed_from_workflow_count
      title: TagValueDeleteResponse
      description: Response for ``DELETE /v1/tag-values/{key}``.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````