/systems/{id}/backups/{backup_id} - Delete a stored backup

DELETE /systems/{id}/backups/{backup_id}/download

Deletes a backup object from storage. The operation is final — storage uses object-level deletion, not a soft-delete table.

Access is gated by the same RBAC rules as GET /systems/{id}.

Path parameters

  • id string Required

    System ID

  • backup_id string Required

    Backup object ID

Responses

  • 200 application/json

    Backup deleted

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data object
      Hide data attributes Show data attributes object
      • system_id string
      • backup_id string
  • 401 application/json

    Unauthorized - invalid or missing token

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data object | null
  • 403 application/json

    Forbidden - insufficient permissions

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data object | null
  • 404 application/json

    Resource not found

    Hide response attributes Show response attributes object
    • code integer

      HTTP error code

    • message string

      Error message

    • data object
      Hide data attributes Show data attributes object
      • type string

        Type of error

        Values are validation_error or external_api_error.

      • errors array[object]
        Hide errors attributes Show errors attributes object
        • key string

          Field name that failed validation

        • message string

          Error code or message

        • value string

          Value that failed validation

      • details

        Additional error details

  • 502

    Backup storage unreachable or returned an error

  • 503

    Backup storage is not configured

DELETE /systems/{id}/backups/{backup_id}/download
curl \
 --request DELETE 'https://api.your-domain.com/api/systems/sys_123456789/backups/01934fab-bc33-7890-a1b2-c3d4e5f6a7b8.tar.gz/download' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "code": 200,
  "message": "backup deleted",
  "data": {
    "system_id": "sys_123456789",
    "backup_id": "01934fab-bc33-7890-a1b2-c3d4e5f6a7b8.tar.gz"
  }
}
Response examples (401)
{
  "code": 401,
  "message": "invalid token",
  "data": {}
}
Response examples (403)
{
  "code": 403,
  "message": "insufficient permissions",
  "data": {}
}
Response examples (404)
{
  "code": 400,
  "message": "validation failed",
  "data": {
    "type": "validation_error",
    "errors": [
      {
        "key": "username",
        "message": "required",
        "value": "string"
      }
    ]
  }
}