question

Lanwench-4942 avatar image
0 Votes"
Lanwench-4942 asked DavidCoster-2142 commented

Deleting multiple blobs in Azure web console?

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ManuPhilip avatar image
0 Votes"
ManuPhilip answered DavidCoster-2142 commented

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 *




· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I also added the option " --if-unmodified-since 2022-01-01T12:00Z " to delete blobs prior to a certain time

0 Votes 0 ·