I’m trying to delete everything in containers named “cached” under a tree in my blob storage.
My structure is something like this
-Root
-Bin
-Media
-1324
-cached
-5648
-cached
-Images
-cached
I want to delete everything under “media” that’s in a “cached” folder.
What’s a good approach to this? Code by hand? I have about 100,000 folders that have the “cached” name that I would like to delete.
Maybe some regex can do the trick?
Of course you should first test that against some test data in the storage emulator, and note that the pattern will need to be adapted when you switch to the real cloud storage.
Hope it helps…