Resource Deletion Protection
Deletion Policy
Deletion policies protect important resources and reduce the risk of accidental deletion.
The current deletion policies include Immediate Deletion, Delayed Deletion, and Never Delete.
- Immediate Deletion: Resources are physically deleted directly and removed from the database. Deleted resources cannot be recovered.
- Delayed Deletion: A resource is marked as deleted in the database but is not physically removed immediately. Before the retention period expires, you can recover the resource from the recycle bin in the UI or by using the ZSphere API. During this period, the resource continues to occupy physical capacity, such as disk space. After the retention period expires, the resource is physically deleted and cannot be recovered.
- Never Delete: Resources are marked as deleted in the database but are never physically deleted. They occupy physical space all the time.
Resources that currently support deletion policy include virtual machines, disks, images, and bare metal instances.
- VM Deletion Policy: Immediate Deletion, Delayed Deletion, and Never Delete. The default policy is Delayed Deletion.
- Disk Deletion Policy: Immediate Deletion, Delayed Deletion, and Never Delete. The default policy is Delayed Deletion.
- Image Deletion Policy: Immediate Deletion, Delayed Deletion, and Never Delete. The default policy is Delayed Deletion.
- Bare Metal Instance Deletion Policy: Immediate Deletion and Never Delete. The default policy is Never Delete.
UI Deletion Reminder
The UI provides a protection mechanism for deleting important resources. The system displays the consequences of deleting the resource and shows the number of directly associated virtual machines and disks. You must confirm the deletion to proceed, reducing the risk of accidental operation.
