| IObjectStorageProviderDeleteContainer Method |
Namespace: net.openstack.Core.Providers
void DeleteContainer( string container, bool deleteObjects = false, string region = null, bool useInternalUrl = false, CloudIdentity identity = null )
| Exception | Condition |
|---|---|
| ArgumentNullException | If container is . |
| ArgumentException | If container is empty. |
| ContainerNameException | If container is not a valid container name. |
| NotSupportedException |
If the provider does not support the given identity type.
-or- The specified region is not supported. -or- useInternalUrl is and the provider does not support internal URLs. |
| 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. |
| ContainerNotEmptyException | If the container could not be deleted because it was not empty and deleteObjects was . |
| ItemNotFoundException | If the specified container does not exist. |
| ResponseException | If the REST API request failed. |