CloudBlobContainer.deleteIfExists Method
Definition
Overloads
| deleteIfExists() |
Deletes the container if it exists. |
| deleteIfExists(AccessCondition accessCondition, BlobRequestOptions options, OperationContext opContext) |
Deletes the container if it exists using the specified request options and operation context. |
deleteIfExists()
Deletes the container if it exists.
public boolean deleteIfExists()
Returns
true if the container did not already exist and was created; otherwise, false.
Exceptions
If a storage service error occurred.
deleteIfExists(AccessCondition accessCondition, BlobRequestOptions options, OperationContext opContext)
Deletes the container if it exists using the specified request options and operation context.
public boolean deleteIfExists(AccessCondition accessCondition, BlobRequestOptions options, OperationContext opContext)
Parameters
- accessCondition
- AccessCondition
An AccessCondition object that represents the access conditions for the container.
- options
- BlobRequestOptions
A BlobRequestOptions object that specifies any additional options for the request. Specifying null will use the default request options from the associated service client ( CloudBlobClient).
- opContext
- OperationContext
An OperationContext object that represents the context for the current operation. This object is used to track requests to the storage service, and to provide additional runtime information about the operation.
Returns
true if the container existed and was deleted; otherwise, false.
Exceptions
If a storage service error occurred.