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

# Delete a version

> Delete a version from a set. Admin only. Returns 409 with the referencing `definition_ids` when a live definition binds that (set, version) (D-09). Cross-tenant access returns 404.



## OpenAPI

````yaml /openapi.json delete /variables/{set_name}/versions/{version_name}
openapi: 3.1.0
info:
  title: GetDialed Flows API
  version: 0.1.0
servers:
  - url: https://api.getdialed.ai/flows
    description: Production
security: []
paths:
  /variables/{set_name}/versions/{version_name}:
    delete:
      tags:
        - variables
      summary: Delete a version
      description: >-
        Delete a version from a set. Admin only. Returns 409 with the
        referencing `definition_ids` when a live definition binds that (set,
        version) (D-09). Cross-tenant access returns 404.
      operationId: delete_version_variables__set_name__versions__version_name__delete
      parameters:
        - name: set_name
          in: path
          required: true
          schema:
            type: string
            title: Set Name
        - name: version_name
          in: path
          required: true
          schema:
            type: string
            title: Version Name
      responses:
        '204':
          description: Successful Response
        '401':
          description: Missing or invalid authentication
          content:
            application/json:
              example:
                detail: Authentication required
        '403':
          description: Caller is authenticated but not an admin
          content:
            application/json:
              example:
                detail: Admin role required
        '404':
          description: >-
            No such variable set for this organization (cross-tenant access also
            returns 404)
          content:
            application/json:
              example:
                detail: Variable set not found
        '409':
          description: >-
            Referential guard (D-09) — the detail carries the referencing
            definition_ids.
          content:
            application/json:
              example:
                detail: >-
                  Variable set is referenced by live definitions; update them
                  first
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
        - HTTPBearer: []
components:
  schemas:
    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
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
    HTTPBearer:
      type: http
      scheme: bearer
      bearerFormat: JWT

````