> ## 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 agent tag

> Soft-delete a single tag from a workflow. Writes a DELETE event row.



## OpenAPI

````yaml /api-reference/openapi.json delete /v1/agents/{workflow_permanent_id}/tags/{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/agents/{workflow_permanent_id}/tags/{key}:
    delete:
      tags:
        - Tags
      summary: Delete agent tag
      description: Soft-delete a single tag from a workflow. Writes a DELETE event row.
      operationId: >-
        delete_workflow_tag_v1_workflows__workflow_permanent_id__tags__key__delete
      parameters:
        - name: workflow_permanent_id
          in: path
          required: true
          schema:
            type: string
            description: Workflow permanent ID
            examples:
              - wpid_123
            title: Workflow Permanent Id
          description: Workflow permanent ID
        - name: key
          in: path
          required: true
          schema:
            type: string
            description: Tag key to delete
            examples:
              - env
            title: Key
          description: Tag key to delete
        - 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.
      responses:
        '200':
          description: Successfully deleted tag (or no-op if absent)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TagsResponse'
        '404':
          description: Workflow not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    TagsResponse:
      properties:
        workflow_permanent_id:
          type: string
          title: Workflow Permanent Id
        tags:
          items:
            $ref: '#/components/schemas/TagResponse'
          type: array
          title: Tags
      type: object
      required:
        - workflow_permanent_id
        - tags
      title: TagsResponse
      description: >-
        Current tags for a workflow. A list (not a key-map) so standalone
        labels,

        which have no key, are representable.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TagResponse:
      properties:
        key:
          anyOf:
            - type: string
            - type: 'null'
          title: Key
        value:
          type: string
          title: Value
        source:
          type: string
          title: Source
        set_at:
          type: string
          format: date-time
          title: Set At
        set_by:
          type: string
          title: Set By
      type: object
      required:
        - value
        - source
        - set_at
        - set_by
      title: TagResponse
      description: |-
        Current state of one tag (``GET /v1/workflows/{wpid}/tags`` row).
        ``key`` is null for a standalone label.
    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

````