> Automation > Objects > HyperV > Remove VM

Remove VM

Deletes a virtual machine and configuration file, but does not delete any virtual hard drives. If the virtual machine has any snapshots, these are deleted and merged into the virtual hard disk files after the virtual machine is deleted.

Input Parameters

Name Type Required Description
VM Name String Yes Specifies the virtual machine to be deleted.

Output Parameters

Name Type Description
Result Number Returns a success value of zero or any value other than zero to indicate failure.

Example Input Parameters

Name Type Required Example
VM Name String Yes Guest001