Is it safe and how to Delete Hyper-v VM & Virtual Disk after VM Restore to New VM Name

mswarris 21 Reputation points
2022-11-02T16:18:52.787+00:00

Hello, I had an issue which required me to restore my Hyper-v VM Windows 2019 Server to the Same Host but with a New Name and I want to ensure I follow the proper steps for Deleting / Removal of the Old VM and it's Virtual Disks.

The Pic shows the Old VM (RDVM 2019) which is off and the new VM (RDVM 2019x) that was restored from a backup of RDVM 2019 to the new VM name RDVM 2019x and is up and running.
256485-image.png

Can I simply Delete the Old VM from this list and then manually delete the Disk it was using with out causing a problem for the running VM?

Here's a screen shot of the Disks being used by the old RDVM 2019 that I would like to remove to free up space on the Host in Yellow.. The Disk at the top in Blue is what the new VM RDVM 2019x is pointing to.
256463-image.png

Thank you for your help..Scott

Windows for business | Windows Client for IT Pros | Storage high availability | Virtualization and Hyper-V
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2022-11-02T19:11:22.927+00:00

    You can use the scripts from link above to cleanup the MRT / RCT files. Third party backup tools may be responsible for creating them. You can likely delete them especially if they're associated with the abandoned VMs. As to the disk image files; if you confirmed they're no longer needed you can remove them.

    --please don't forget to upvote and Accept as answer if the reply is helpful--


4 additional answers

Sort by: Most helpful
  1. Anonymous
    2022-11-02T17:03:18.107+00:00

    Should be Ok as long as the files are not being used by new virtual machine. (sub MyVM for your vm's name)

    Get-VMHardDiskDrive -VMName MyVM  | Format-Table -AutoSize  
    

    --please don't forget to upvote and Accept as answer if the reply is helpful--


  2. mswarris 21 Reputation points
    2022-11-02T18:14:58.197+00:00

    I ran the powershell command and got this back..
    256532-image.png

    0 comments No comments

  3. Anonymous
    2022-11-02T18:33:51.38+00:00

    Ok, I guess you're asking about the MRT / RCT files? If so there are some scripts here you can use to clean them up.
    https://charbelnemnom.com/remove-lingering-hyper-v-replica-log-hrl-file-from-hyperv-ws12r2/

    --please don't forget to upvote and Accept as answer if the reply is helpful--

    0 comments No comments

  4. mswarris 21 Reputation points
    2022-11-02T18:52:11.033+00:00

    I would actually like to delete all of the VM disks that are highlighted in YELLOW in the PIC below.. Is there a reason to keep these around?
    256487-image.png

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.