BlobContainerClient.delete Method
Definition
Marks the specified container for deletion. The container and any blobs contained within it are later deleted during garbage collection. For more information, see the Azure Docs.
Code Samples
try {
client.delete();
System.out.printf("Delete completed%n");
} catch (BlobStorageException error) {
if (error.getErrorCode().equals(BlobErrorCode.CONTAINER_NOT_FOUND)) {
System.out.printf("Delete failed. Container was not found %n");
}
}
public void delete()