Open codywilliamson opened 1 year ago
Hi @codywilliamson for this scenario we would recommend you go with deleting the Azurite data files to accomplish what you are looking for.
The files/folders Azurite uses to track queue data appear to be:
__azurite_db_queue_extent__.json
You should be able to just delete those from your Azurite folder. That will delete all queue related data. Alternatively if you want to simply go back to the state of "having a bunch of queues but none with messages", you could probably do something like:
Does that make sense?
That's a great workaround and I can build some scripts that do this for me. I was more so hoping for a built-in way to do this, but thank you for the direction!
I was more so hoping for a built-in way
Understood. For now this sounds like a pretty niche feature, and one which has the potential to accidentally cause someone a lot of headache if they don't know what they are doing. So for now the self-scripted solution is what we'll recommend. We'll leave this open in our future milestone in case others come along wanting it as well.
Preflight Checklist
Problem
When using Azurite or any other emulated service for local development, there might be a lot of test data created. I find myself manually deleting a lot of queue items across several queues.
Desired Solution
It would be helpful to be able to right-click an emulator's entire queue and clear all messages
Alternatives and Workarounds
Manually clear all messages from each queue (possibly deleting generated data files, but haven't tested this)
Additional Context
No response