azureblobstoreazure-blob-storage

How to clean an Azure storage Blob container?


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).


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