$ 0 0 If you want to remove all the devices in $ed01 you can do$ed01 | %{ $e01.storage.core.device.detached.remove($_)}