Delete multiple blobs
See original GitHub issueIIUC, az storage blob delete
will delete just one blob.
Similar to #998, it would be nice to be able to delete a whole
“directory”. It looks like the only way to do that currently is to get
a list of all blobs using --prefix
then iterate over each one of them,
which would overall be extremely slow compared to a single
delete-batch
.
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (12 by maintainers)
Top Results From Across the Web
Deleting multiple blobs in Azure web console? - Microsoft Q&A
I would like to delete a lot of blobs in a container, and I can't seem to find any select all / select...
Read more >Deleting all blobs in a directory with Azure.Storage.Blobs
You can use the GetBlobsByHierarchy method to list blobs in your directory, and then delete them. Please refer to my code:
Read more >How to Delete Files from Multiple Blob Containers ... - YouTube
How to Delete Files from Multiple Blob Containers by Using Controlled File in Azure Data Factory? In this video we have used a...
Read more >Delete All Files From Storage Account Container - Azure Blob ...
Learn how to delete all blobs from azure storage account blob container#Azure#DeleteAllBlobs#.NetCore.
Read more >Azure Storage Blobs Batching client library for .NET
This library allows you to batch multiple Azure Blob Storage operations in a single ... GetBlobBatchClient(); // Delete several blobs in one batched...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@williexu – thanks, I’ll follow it (it’s very relevant for me, since I do have these long deletion sequences that are very slow).
@troydai, I don’t know what it actually does, but I think that a lot of speedup can happen if you keep the connection alive – and it seems to me that this could lead to the speedup that happens when deleting a subtree in the storage explorer. Assuming that most of the ~2 second per deletion via the cli is spent on establishing a connection, this would be the boost that will make it a practical operation.