Zudoku
Cloud Platform

Delete Locks

You can currently only manage delete locks via the API or unikraft 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:

Enabling a delete lock

You can set a delete lock on a resource via a PATCH operation:

unikraft api /v1/instances -X PATCH --metro fra \ '[{ "name": "<instance-name>", "prop": "delete_lock", "op": "set", "value": true }]'

Removing a delete lock

Before you can delete a resource, you need to remove the delete lock by setting its value to false:

unikraft api /v1/instances -X PATCH --metro fra \ '[{ "name": "<instance-name>", "prop": "delete_lock", "op": "set", "value": false }]'

The autokill subsystem skips instances and service groups that have a delete lock set.

Learn more

Last modified on