This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Deleting Volumes with SDK

Does anyone know how to do it?

  • From PowerShell, you can do it like this:

    $swis = Connect-Swis

    $uri = "swis://./orion/Orion.Nodes/NodeID=1/Volumes/VolumeID=2"

    Remove-SwisObject $swis $uri

    To get the Uri for a volume, you can use a query:

    $uri = Get-SwisData $swis "SELECT Uri FROM Orion.Volumes WHERE criteria"

    If you'd like to use a language other than PowerShell, you can do this through SOAP. Let me know if you'd like more details.

  • tdanner​ strikes again emoticons_happy.png

    Quick search to find a bulk volume delete method and this post appears from 2012, 2 minutes later and boom all my bad volumes are gone.

    Thank you!