Cloud Platform
Delete Locks
The KraftKit CLI tool doesn't expose this feature to users yet. Use it via the Unikraft Cloud API.
Delete locks prevent accidental deletion of instances and volumes. When you set a delete lock on a resource, any attempt to delete it returns an error until you remove it.
Delete locks apply to:
- Instances
- Instance templates
- Volumes
- Volume templates
Enabling a delete lock
You can set a delete lock on a resource via a PATCH operation.
Set UKC_TOKEN and UKC_METRO for the API calls:
Locking an instance
Removing a delete lock
Before you can delete a resource, you need to remove the delete lock by setting its value to false:
Unlocking an instance
Behaviour
- Deletion blocked: Any
DELETErequest on a locked resource returns an error. - Autokill skipped: The autokill subsystem skips instances and service groups that have a delete lock set.
- Templates: Delete locks are independently configurable on instance templates and volume templates via their respective
PATCHendpoints.
Learn more
- The CLI reference and the legacy CLI reference.
- Unikraft Cloud's REST API reference, in particular the sections on instances and volumes.
Last modified on