Deleting a VM Template File
This operation enables you to delete a VM template file.
Prerequisites
At least one VM exists in the storage system.
Do not delete a VM template file using the SFTP tool. Otherwise, the VM template file of the VM cannot be used normally. If a VM template file is required, transfer it to the storage system. If no VM template file is required, delete the VM template file from the VM.
Procedure
- Go to the CLI.
- Run delete vm_template general vm_fs_id=? name=?.Table 7-18 describes the related parameters.Table 7-18 Parameters for deleting a VM template file
Parameter
Description
Value
vm_fs_id=?
ID of the VM file system.
To obtain the value, run the show vm_fs general command without parameters.
name=?
Name of the VM template.
To obtain the value, run the show vm_template general command without parameters.
- Confirm that all required parameters are correctly configured.
Example
Delete VM template file test.img from file system 1.
admin:/>delete vm_template general vm_fs_id=1 name=test.img
WARNING: You are about to delete a file. The deleted file cannot be recovered.
Suggestion: Before performing this operation, ensure that the target file is the one you want to
delete.
Have you read warning message carefully?(y/n)y
Are you sure you really want to perform the operation?(y/n)y
Command executed successfully.