question

DevikaS-5288 avatar image
0 Votes"
DevikaS-5288 asked DevikaS-5288 commented

Are there any plans to introduce a feature to delete all blob inside a directory?

Hi,

I have block blobs saved inside a container organised into different directories. Currently, if I have to delete all blobs inside a directory I have to first list all the blobs with prefix path and then delete all blobs one by one. Are there any plans to introduce a feature similar to list by prefix to delete by prefix?

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

VaibhavChaudhari avatar image
0 Votes"
VaibhavChaudhari answered DevikaS-5288 commented

One workaround is to use Storage explorer, filter the files with prefix and select all, delete.


79447-image.png

If this delete activity has to be scheduled, then ADF can be used.

If you want this feature to be implemented, you may post the feedback here which is monitored by product team

https://feedback.azure.com/forums/217298-storage


Please don't forget to Accept Answer and Up-vote if the response helped -- Vaibhav



image.png (40.2 KiB)
· 2
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.

We can't achieve this from the Storage Explorer, we want this to be done programmatically (we use NodeJS SDK). If the same is achievable from Storage Explorer then why isn't this feature not exposed via APIs?

0 Votes 0 ·

Using ADF is a much heavier and slower approach. Also we do not want to use an extra resource just for this operation.

0 Votes 0 ·