Deleting multiple blobs in Azure web console?

Lanwench 1 Reputation point
2021-07-19T06:10:16.383+00:00

I'm just getting started with Azure storage, and testing some NAS backups to Azure. In the process have created a lot of !@#$%. So I'm cleaning it up. I would like to delete a lot of blobs in a container, and I can't seem to find any select all / select sub-item options. Doing it one at a time is incredibly tedious!

Is there an easy way to do this in the gui? I've looked at Storage Explorer and nope, at least so far.

Thanks!
Paula

PS: I haven't yet figured out how to connect to & manage anything Azure via PS so I'm not yet ready to go that route, but I will definitely be moving in that direction soon. Just want to clean up first.

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,876 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Manu Philip 18,561 Reputation points MVP
    2021-07-19T06:59:37.84+00:00

    Blob Storage Rest API doesn't support a bulk operation for blob deletion. So, the alternate way is to use AZ CLI and go for a bulk deletion. The steps are pretty much simple
    As you never tried az cli, start with the az install as explained in this reference: install-azure-cli-windows

    Once the installation is succeeded, login az cli

    az login  
    

    Run the following ps command to delete all the contents within the container. I am using a pattern * to delete everything

    az storage blob delete-batch --source "your blob container name" --account-name "your storage account name" --pattern *  
    

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.