Link to home
Start Free TrialLog in
Avatar of jpgillivan
jpgillivanFlag 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?
Avatar of Philip Elder
Philip Elder
Flag of Canada image

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.
Avatar of 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
Avatar of Philip Elder
Philip Elder
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Get-Command –Module Hyper-V *repl*   returns nothing.  I will have to see why.