CloudBlockStorageProviderDeleteVolume Method |
Namespace: net.openstack.Providers.Rackspace
public bool DeleteVolume( string volumeId, string region = null, CloudIdentity identity = null )
Exception | Condition |
---|---|
ArgumentNullException | If volumeId is . |
ArgumentException | If volumeId is empty. |
NotSupportedException |
If the provider does not support the given identity type.
-or- The specified region is not supported. |
InvalidOperationException |
If identity is and no default identity is available for the provider.
-or- If region is and no default region is available for the provider. |
ResponseException | If the REST API request failed. |
Note |
---|
It is not currently possible to delete a volume once you have created a snapshot from it. Any snapshots will need to be deleted prior to deleting the volume. |