The dpmhv-destroyVM command lets you delete existing VM specifications, virtual disks, floppy images, and its related snapshots.
This command has the following format:
dpmhv-destroyVM -host hostname -vm vmname|-vmid vmguid [-delvhd] [-delvfd] [-deliso] [-retval] [-silent]
Specifies the name of the Hyper-V server host.
Specifies the name of the VM.
Specifies the unique ID of the VM.
(Optional) Deletes the virtual hard disk assigned to the VM.
(Optional) Deletes the virtual floppy disk assigned to the VM.
(Optional) Deletes the ISO image assigned to the VM.
Returns a value for further processing.
Specifies not to direct the output to the screen.
Example: Delete a VM
This example deletes VM with the virtual hard disk and floppy disk attached to the VM.
dpmhv-destroyVM -host hvserver -vm TestVM -delvhd -delvfd
Copyright © 2013 CA. All rights reserved. |
|