Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document.
Note: Even the most advanced machine translation cannot match the quality of professional translators.
Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
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 8-13 describes the related parameters.
- 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.