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

# Delete a version



## OpenAPI

````yaml api-reference/openapi.yaml delete /themes/{slug}/versions/{version}
openapi: 3.0.0
info:
  title: Repository Endpoints
  description: >-
    To interract with API, you will need to provide a valid API Key generated on
    [https://dashboard.wp-content.io/](https://dashboard.wp-content.io/).


    Scope will be indicated in each sections. The REST API is build on CRUD
    model and each permission of scope is linked to a method :


    | **Method** | **Permission** |

    | --- | --- |

    | GET | read |

    | PATCH | update |

    | POST | create |

    | DELETE | delete |
  version: 1.0.0
servers:
  - url: https://registry.wp-content.io
security:
  - ApiKeyAuth: []
tags:
  - name: Repository
  - name: Plugins
    description: >-
      This section presents all the endpoints for managing plugins and their
      versions.  


      Scope required : `plugins`
  - name: Plugin Versions
  - name: Themes
    description: >-
      This section presents all the endpoints for managing plugins and their
      versions.  


      Scope required : `plugins`
  - name: Theme Versions
paths:
  /themes/{slug}/versions/{version}:
    delete:
      tags:
        - Theme Versions
      summary: Delete a version
      parameters:
        - name: slug
          in: path
          schema:
            type: string
          required: true
          description: Slug of theme
          example: my-theme
        - name: version
          in: path
          schema:
            type: string
          required: true
          description: Theme version to delete
          example: 1.0.0
      responses:
        '200':
          description: OK
          headers:
            Date:
              schema:
                type: string
                example: Wed, 11 Jun 2025 11:46:11 GMT
            Server:
              schema:
                type: string
                example: Apache
            Cache-Control:
              schema:
                type: string
                example: no-store, max-age=0, no-cache
            Access-Control-Allow-Origin:
              schema:
                type: string
                example: '*'
            Debugbar-Time:
              schema:
                type: number
                example: '1749642372.347016'
            Debugbar-Link:
              schema:
                type: string
                example: >-
                  http://localhost:8080/index.php?debugbar_time=1749642372.347016
            Content-Length:
              schema:
                type: integer
                example: '589'
            Keep-Alive:
              schema:
                type: string
                example: timeout=5, max=100
            Connection:
              schema:
                type: string
                example: Keep-Alive
            Content-Type:
              schema:
                type: string
                example: application/json; charset=UTF-8
          content:
            application/json:
              schema:
                type: object
              example:
                version: 1.0.0
                release_notes: Version update
                download_link: >-
                  https://wp-content-staging.s3.fr-par.scw.cloud/artifacts/themes/my-theme/my-theme-1.0.0-86869156b3b9fbffd6e69fa6cf49452a.zip
                checksum: 86869156b3b9fbffd6e69fa6cf49452a
                latest: false
        '400':
          description: Bad Request
          headers:
            Date:
              schema:
                type: string
                example: Wed, 11 Jun 2025 09:21:05 GMT
            Server:
              schema:
                type: string
                example: Apache
            Cache-Control:
              schema:
                type: string
                example: no-store, max-age=0, no-cache
            Access-Control-Allow-Origin:
              schema:
                type: string
                example: '*'
            Debugbar-Time:
              schema:
                type: number
                example: '1749633665.301004'
            Debugbar-Link:
              schema:
                type: string
                example: >-
                  http://localhost:8080/index.php?debugbar_time=1749633665.301004
            Content-Length:
              schema:
                type: integer
                example: '185'
            Connection:
              schema:
                type: string
                example: close
            Content-Type:
              schema:
                type: string
                example: application/json; charset=UTF-8
          content:
            application/json:
              schema:
                type: object
              example:
                status: 400
                error: 400
                messages:
                  error: >-
                    You cannot delete latest version. Please upload a new
                    version or choose a previous version as latest.
        '404':
          description: Not Found
          headers:
            Date:
              schema:
                type: string
                example: Wed, 11 Jun 2025 09:21:25 GMT
            Server:
              schema:
                type: string
                example: Apache
            Cache-Control:
              schema:
                type: string
                example: no-store, max-age=0, no-cache
            Access-Control-Allow-Origin:
              schema:
                type: string
                example: '*'
            Debugbar-Time:
              schema:
                type: number
                example: '1749633685.607223'
            Debugbar-Link:
              schema:
                type: string
                example: >-
                  http://localhost:8080/index.php?debugbar_time=1749633685.607223
            Content-Length:
              schema:
                type: integer
                example: '93'
            Keep-Alive:
              schema:
                type: string
                example: timeout=5, max=100
            Connection:
              schema:
                type: string
                example: Keep-Alive
            Content-Type:
              schema:
                type: string
                example: application/json; charset=UTF-8
          content:
            application/json:
              schema:
                type: object
              example:
                status: 404
                error: 404
                messages:
                  error: Not Found
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY

````