Delete a Virtual Machine
Delete a VM that is no longer needed from the VM list. Depending on the current VM deletion policy, the VM is retained in the recycle bin or permanently deleted immediately.
Before you begin
- VMs in the running, paused, crashed, or unknown state cannot be moved to the recycle bin or deleted. Shut down the VM before this operation.
- Before proceeding, check the current VM and disk deletion policies. Delayed Deletion and Never Delete move VMs to the recycle bin. Immediate Deletion permanently deletes VMs, which cannot then be recovered from the recycle bin. Under Delayed Deletion, the system clears expired VMs according to the cleanup interval. Under Never Delete, VMs are not automatically expunged. For policy and retention settings, see Platform Policy.
Procedure
Results
After the task succeeds, CPU, memory, IP addresses, and other resources occupied by the original VM are released. VM data retained in the recycle bin still occupies storage space. Moving a VM to the recycle bin does not free that disk space. Also check the state of associated data disks.
To recover a VM from the recycle bin, see Recover a VM from the Recycle Bin. To manually clear a VM from the recycle bin, see Permanently Delete a Virtual Machine.
