Remove-VM (Hyper-V) | Microsoft Docs
docs.microsoft.com › module › hyper-vThe Remove-VM cmdlet deletes a virtual machine. Running this cmdlet deletes the virtual machine's 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. Examples Example 1 PowerShell
Delete Hyper-V Virtual Machine in Windows 10
winaero.com › delete-hyper-v-virtual-machineApr 29, 2019 · If you need to remove a virtual machine, you can use either the Hyper-V Manager tool, or PowerShell. When you delete a VM, the virtual machine's configuration file will be removed, but it does not delete any virtual hard drives (.vhdx). The checkpoints will be deleted and merged into the virtual hard disk files after the VM is deleted.