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

# Delete Backup

> Deletes a finished backup and frees its slot.



## OpenAPI

````yaml delete /servers/{server}/backups/{backup}
openapi: 3.1.0
info:
  title: APIFiddle Sample Definition
  version: 0.0.0
  description: Example workspace
servers:
  - url: https://rdp.sh/api/v1
    description: Default production endpoint.
security: []
paths:
  /servers/{server}/backups/{backup}:
    delete:
      summary: Delete a backup
      description: Deletes a finished backup and frees its slot.
      operationId: deleteServerBackup
      parameters:
        - $ref: '#/components/parameters/server'
        - $ref: '#/components/parameters/backup'
      responses:
        '202':
          content:
            application/json:
              schema:
                type: object
                title: DeleteServerBackupOk
                properties:
                  status:
                    type: boolean
                    examples:
                      - true
                  message:
                    type: string
                    examples:
                      - The backup is being deleted.
          description: The backup is being deleted.
        '403':
          description: User does not own the server.
        '404':
          description: Server not found, or no backup with this ID on the server.
        '409':
          content:
            application/json:
              schema:
                type: object
                title: DeleteServerBackupConflict
                properties:
                  status:
                    type: boolean
                    examples:
                      - false
                  error:
                    type: string
                    examples:
                      - A backup that is still running cannot be deleted.
          description: >-
            The backup is still running or being restored, or the server is
            suspended or busy.
      security:
        - Authorization: []
components:
  parameters:
    server:
      in: path
      name: server
      schema:
        type: string
      required: true
    backup:
      in: path
      name: backup
      schema:
        type: integer
      required: true
      description: Backup ID
  securitySchemes:
    Authorization:
      in: header
      name: Authorization
      type: apiKey
      description: |
        Your API key as it is, without `Bearer`. API access is off for new
        accounts: until it is turned on under Settings > API, every request
        answers `403` with `API access is turned off for this account. Turn it
        on under Settings > API.` If the account lists allowed IPs, a request
        from any other address answers `403` with `This API key is not allowed
        from <address>`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.