Deleting, restoring and deletion protection
What a token with the delete level can destroy, and what stops it
Updated
API documentation pages
The API does not ask twice. A token with the delete level deletes and overwrites at once. What stops it is the level of the token, your role in the project, and deletion protection.
Deleting a server deletes its backups#
This server and all its backups will be deleted permanently and cannot be recovered. A dry run of the delete says how many backups go with it. Keep copies you need somewhere else.
Restoring overwrites the disk#
Data on the current disk will be overwritten and cannot be recovered. A restore needs the delete level on servers and the read level on backups: a token that can only delete backups cannot overwrite a server.
Deletion protection#
- A server with deletion protection on cannot be deleted or restored over, by any token:
409 termination_protected. - A token with manage may turn it on.
- It turns off only by hand on the server page in the console. No token and no level can turn it off:
403 termination_protection_web_only.
Protection does not cover Block Storage volumes (volumes:delete), deleting backups (backups:delete), or servers removed when the credit runs out.
Before you delete#
- Send the request with
?dry_run=trueand readwarnings. - Make sure a person asked for exactly this.
- Send it with an
Idempotency-Key.
Got insufficient_scope or termination_protected? Stop. Do not look for another way; ask the owner to do it in the console.
Each delete and restore by a token is recorded and the owners are told by email.