> ## 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.

# Remove Backup Slots

> Goes back to the free slot. Nothing is refunded and nothing is deleted: delete
backups until only one is left first. Renewals no longer include the surcharge.




## OpenAPI

````yaml delete /servers/{server}/backups/slots
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/slots:
    delete:
      summary: Give up the paid backup slots
      description: >
        Goes back to the free slot. Nothing is refunded and nothing is deleted:
        delete

        backups until only one is left first. Renewals no longer include the
        surcharge.
      operationId: removeServerBackupSlots
      parameters:
        - $ref: '#/components/parameters/server'
      responses:
        '200':
          content:
            application/json:
              schema:
                title: RemoveBackupSlotsOk
                allOf:
                  - type: object
                    properties:
                      status:
                        type: boolean
                        examples:
                          - true
                      message:
                        type: string
                        examples:
                          - >-
                            Backups continue on the free slot. There is no
                            refund for the current period.
                  - $ref: '#/components/schemas/backupSettings'
          description: The server is back on the free slot.
        '403':
          description: User does not own the server.
        '404':
          description: Server not found.
        '409':
          content:
            application/json:
              schema:
                type: object
                title: RemoveBackupSlotsConflict
                properties:
                  status:
                    type: boolean
                    examples:
                      - false
                  error:
                    type: string
                    examples:
                      - >-
                        Delete backups until only 1 remains, then switch back to
                        the free slot.
          description: >
            The server has no paid slots, stores more backups than the free slot
            holds,

            a backup or restore is running, or the server is suspended or busy.
      security:
        - Authorization: []
components:
  parameters:
    server:
      in: path
      name: server
      schema:
        type: string
      required: true
  schemas:
    backupSettings:
      type: object
      required:
        - enabled
        - slots
      properties:
        enabled:
          type: boolean
          description: Whether backups are enabled for the server.
          examples:
            - true
        slots:
          type: object
          properties:
            total:
              type: integer
              description: How many backups the server can keep.
              examples:
                - 1
            free:
              type: integer
              description: How many of them are free of charge.
              examples:
                - 1
            paid:
              type: boolean
              description: Whether the paid slots are bought.
              examples:
                - false
            paid_total:
              type: integer
              description: How many backups the server can keep with the paid slots.
              examples:
                - 5
        schedule:
          description: When the server is backed up, or `null` while backups are disabled.
          oneOf:
            - type: object
              properties:
                frequency:
                  type: string
                  enum:
                    - daily
                    - weekly
                hour:
                  type: integer
                  description: The hour the backup starts, in UTC.
                  examples:
                    - 3
                weekday:
                  type:
                    - integer
                    - 'null'
                  description: 0 = Sunday to 6 = Saturday, for a weekly schedule.
                retention:
                  type: integer
                  description: How many backups are kept.
                  examples:
                    - 1
            - type: 'null'
      description: Whether a server's backups are enabled, its slots and its schedule.
  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.