If you use Hyper-V on Windows, you can add, run, or remove guest operating systems from the Hypere-V administrative Console. More convenient would be a tool with GUI to delete VMs.
Mikael Nystrom has created a PowerShell script for this purpose and offered for free on GitHub.
— Mikael Nystrom (@mikael_nystrom) 21. September 2018
Simply copy the GitHub source code into a .ps1 file and run it with .\name.ps1 in the PowerShell.