> ## 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 Asset Version

> Permanently delete a version's snapshot files (storage cleanup). This cannot be undone — the version stops being restorable. The CURRENT version can never be deleted (the server answers 400); restore a different version first. Version numbers are never reused.



## OpenAPI

````yaml delete /api/v2/asset/versions/delete
openapi: 3.0.0
info:
  version: 1.0.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/asset/versions/delete:
    delete:
      tags:
        - Asset
      summary: Delete Asset Version
      description: >-
        Permanently delete a version's snapshot files (storage cleanup). This
        cannot be undone — the version stops being restorable. The CURRENT
        version can never be deleted (the server answers 400); restore a
        different version first. Version numbers are never reused.
      operationId: deleteVersion
      parameters:
        - schema:
            type: string
            description: UUID of the asset. e.g. '4f1e2a90-8b3d-4c21-9e07-2a1b3c4d5e6f'
          required: true
          description: UUID of the asset. e.g. '4f1e2a90-8b3d-4c21-9e07-2a1b3c4d5e6f'
          name: uuid
          in: query
        - schema:
            type: integer
            minimum: 1
            description: Version number, from asset_versions_list. e.g. 2
          required: true
          description: Version number, from asset_versions_list. e.g. 2
          name: version
          in: query
      responses:
        '200':
          description: Asset version deleted successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  _metadata:
                    $ref: '#/components/schemas/Metadata'
                  data:
                    type: object
                    properties:
                      success:
                        type: boolean
                        description: True when the version snapshot was deleted. e.g. true
                      uuid:
                        type: string
                        description: >-
                          UUID of the asset. e.g.
                          '4f1e2a90-8b3d-4c21-9e07-2a1b3c4d5e6f'
                      version:
                        type: number
                        description: The deleted version number. e.g. 2
                    required:
                      - success
                      - uuid
                      - version
                required:
                  - _metadata
                  - data
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                type: object
                properties:
                  _metadata:
                    $ref: '#/components/schemas/Metadata'
                required:
                  - _metadata
      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

````