How to clean an Azure storage Blob container?

azure, azure-blob-storage, blobstore

Solution

A one liner using the Azure CLI 2.0:

az storage blob delete-batch --account-name <storage_account_name> --source <container_name>

Substitute `<storage_account_name>` and `<container_name>` by the appropriate values in your case.

You can see the help of the command by running:

az storage blob delete-batch -h

Problem

I just want to clean (dump, zap, del .) an Azure Blob container. How can I do that? Note: The container is used by IIS (running Webrole) logs (wad-iis-logfiles).

Original source