Document navigation

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

  1. In the navigation pane, choose Inventory > VM and Host.
  2. Select the target VM.
  3. On the VM details page, click Actions > Move to Recycle Bin.
    To delete multiple VMs, go to the Virtual Machine tab of a parent resource, such as a host, cluster, or data center. For example, on the Virtual Machine tab of a host, select the VMs to delete, and then click Actions > Move to Recycle Bin.
    The delete button name changes based on VM Deletion Policy. Under Immediate Deletion, the button is named Delete and opens the permanent deletion confirmation. Under Delayed Deletion or Never Delete, the button is named Move to Recycle Bin.
  4. Review the selected VMs and the impact described in the confirmation dialog. Under Delayed Deletion or Never Delete, select Also delete attached disks if needed.
    This option is cleared by default. Selecting it applies the disk deletion policy to attached data disks, excluding shared disks. The Immediate Deletion confirmation does not provide this option. Manage data disks separately if they also need to be deleted. VM and data disk retention periods can differ. A VM remaining in the recycle bin does not confirm that its data disks are still recoverable.
  5. After reviewing the impact, complete the confirmation required by the dialog, submit the operation, and wait for the task to finish.

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.