Avatar of jpgillivan
jpgillivan
Flag for United States of America asked on

Best practice for Removing Hyper-V replica and files

I have been searching for a best practice or easy way to remove files that are left over on a hyper-v replication destination server after replication is removed from a machine.  

As most may know that the replication destination files and folders are log GUID like names.

Any suggestions for applications or tools to help with cleanup and/or documentation?
Hyper-V

Avatar of undefined
Last Comment
jpgillivan

8/22/2022 - Mon
Philip Elder

If there is no more replication and the folders/files are located in their own unique folder structure then it should be safe to delete that folder set.
jpgillivan

ASKER
Philip,  I get that and have done that.  What I am looking for is a tool or powershell command/script that can determine if replication has been removed from the VM then remove the associated files and folders.

I'm dumb founded as to why Hyper-V Manager doesn't do that to start with.  If it can enable and disable replication why not have the option to remove the actual replicated files.
ASKER CERTIFIED SOLUTION
Philip Elder

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
jpgillivan

ASKER
Get-Command –Module Hyper-V *repl*   returns nothing.  I will have to see why.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23