Removing a hard disk
This operation allows you to remove a hard disk from a virtual machine.
The following figure shows the sample for device-change-list for removing a hard disk. The permissible values of the elements are:
Element | Definition | Required |
|---|---|---|
<disk-name> | Specifies the name of the hard disk to be removed | Yes |
XML Sample of device-change-list for removing a hard disk
<device-change-list>
<device-change>
<operation>remove</operation>
<file-operation>destroy</file-operation>
<device type="VirtualDisk">
<disk-name></disk-name>
</device>
</device-change>
</device-change-list>
<device-change>
<operation>remove</operation>
<file-operation>destroy</file-operation>
<device type="VirtualDisk">
<disk-name></disk-name>
</device>
</device-change>
</device-change-list>
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*