I think one way to do this is to:
Since you are already using automation, you could probably incorporate some of the code from my remove-HVMachine function to accomplish step 2.
So ironically you will end up deleting VM. At least the original ![]()
https://get-cj.com/2018/04/07/delete-vmware-horizon-machine-using-powercli-horizon-api/
It's very straight forward to use:
remove-HVMachine -cred $cred -viewserver $viewserver -machine $machine