question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Delete multiple blobs

See original GitHub issue

IIUC, 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:closed
  • Created 6 years ago
  • Comments:13 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
elibarzilaycommented, Oct 31, 2017

@williexu – thanks, I’ll follow it (it’s very relevant for me, since I do have these long deletion sequences that are very slow).

1reaction
elibarzilaycommented, Jul 11, 2017

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found