I have an interesting situation where I have several datastores that are mounted to hosts in different datacenters, but only Datacenter-A is actually running the VMs, Datacenter-B is not executing anything.
I've tried using the ConfigManager.StorageSystem.DetachScsiLun to no avail. What I need to do is remove the LUNs from Datacenter-B without destroying any VM that is running on Datacenter-A. Maybe there's some API call I'm missing, but I can't seem to figure it out using PowerCLI.