You can delete a VM in any state, including the running state. To avoid data loss, be cautious when you delete a VM. Shut down the VM if the VM is running.
Before you delete a VM, make sure the VM is not in use, and will not be used any more.
After you delete a VM that has block devices, you cannot import it through a backup file.
If the image file of a VM is saved in a level-2 directory not in use by other VMs in a file storage pool, deleting the VM also deletes the directory.
On the top navigation bar, click Compute.
From the left navigation pane, select Resource Navigation > All > Resources > Host Pool Name > Host Name > VM Name or Compute > Host Pool Name > Cluster Name > Host Name > VM Name.
Click More, and then select Delete.
In the dialog box that opens, select a deletion mode.
If you select the Move to Recycle Bin option, set the recycled VM lifetime, select a VM storage file cleanup mode, select whether to delete VM backup files, and then click OK. In the dialog box that opens, click OK. When the lifetime expires, the system processes the VM storage files and backup files based on the configured VM destroy mode.
If you select the Delete VM option, select a VM storage file cleanup mode, select whether to delete VM backup files, and then click OK. In the dialog box that opens, click OK. In the dialog box that opens, enter DELETE and then click OK.
VM Destroy Mode:
Move to Recycle Bin: Move the VM to the recycle bin. If you select this option, you must also set the lifetime of the VM in the recycle bin. When the lifetime expires, the system automatically deletes the VM from the system. If you set the value to 0, the system will not delete VMs in the recycle bin from the system.
Delete VM: Delete the VM permanently from the system.
VM Storage File Cleanup Mode:
Retain Data Files—When the system deletes a VM, the system deletes only the configuration files, and retains the data files. The location of the VM image file remains unchanged. To restore the VM, create a new one and mount the image file.
Delete Data Files—When the system deletes a VM, the system deletes the configuration files and data files.
Low-Level Format and Delete Data Files—The system first low-level formats the storage data, and then deletes the files. This process might take a long time for larger storage volumes. Use this option with caution. As a best practice, do not select this option for non-sensitive data. Make sure you no longer need the VM data files before you select this option.
Delete VM Backup Files: Select whether to delete the backup files for the VM.