A significant percentage of the time, I receive an Access Denied message when deleting the VM files. Even though the VM is deleted, I cannot remove the files.The happens because Hyper-V has locked the files.
To unlock the files and allow the files to be deleted you can:
- Restart the Hyper-V host
- Restart the Hyper-V Virtual Machine Management service on the host