Delete a backup
DELETE/v1/backups/:id
Deletes a backup. When the repository keeps deleted backups for a while, or the backup is locked, it is hidden at once and purged no earlier than purge_after, and an operator can bring it back until then. A lock delays only the erasure, not the delete. Otherwise it is erased now, by the job in job_id. Refused with conflict under a legal hold.
Any member of the project the token is scoped to.
Request
Responses
- 202
- 401
- 403
- 404
- 409
- default
Accepted
Unauthorized.
unauthenticated: The token is missing, expired or not valid.
Forbidden.
forbidden: The token may not delete backups in this project. Or the backup's plan is under a mandatory policy and the token is not an operator's.
Not Found.
not_found: The id is not a UUID, or no backup has it, or it is not visible to this token.
Conflict.
conflict: A legal hold covers the backup, its plan or its project. Or the backup is already deleted. Or its state is not committed, verified, broken or lock_held. Or it was taken in another cloud, where it has to be deleted.
An error, as an RFC 7807 problem document.