Delete a plan
DELETE/v1/plans/:id
Stops the plan. Its backups stay restorable until they expire, unless with_backups deletes them too. Only an operator can delete a plan under a mandatory policy. Returns 202 with the deletion when it can be undeleted, and always with with_backups. Otherwise, with no grace period or no policy left, it is removed at once with 204. A legal hold on a backup refuses it with conflict.
Any member of the project the token is scoped to.
Request
Responses
- 202
- 400
- 401
- 403
- 404
- 409
- default
Accepted
Bad Request.
invalid_request: A query parameter is malformed.
Unauthorized.
unauthenticated: The token is missing, expired or not valid.
Forbidden.
forbidden: The token's roles do not allow deleting plans. Or the plan is under a mandatory policy and the token is not an operator's.
Not Found.
not_found: No plan has this id, it belongs to another project, or it is already deleted.
Conflict.
conflict: with_backups is true and a legal hold covers one of the plan's backups.
An error, as an RFC 7807 problem document.