Deleting a VM
This operation enables you to delete a VM.
Prerequisites
- The VM has been powered off.
- The health status of the VM file system is normal and the VM file system is mounted.
Precautions
- This operation will cause the VM to be unrecoverable.
- Before performing this operation, ensure that you have selected the correct VM and the VM has been powered off properly.
Procedure
- Go to the CLI.
- run delete virtual_machine general vm_id=? command.Table 7-19 describes the related parameters.
For V500R007C72SPC100 and later versions, you can run the delete virtual_machine general vm_id=? is_force=? command to forcibly delete a VM.
- Confirm that all required parameters are correctly configured.
Example
Delete a VM.
admin:/>delete virtual_machine general vm_id=1
WARNING: You are about to delete a virtual machine. This operation will cause the virtual machine to be unrecoverable.
Suggestion: Before performing this operation, ensure that you have selected the correct virtual machine and the virtual machine has been powered off normally.
Have you read warning message carefully?(y/n)y
Enter "I have read and understand the consequences associated with performing this operation." to confirm running this command:
I have read and understand the consequences associated with performing this operation.
Command executed successfully.