Answer the question
In order to leave comments, you need to log in
Clearing rabbitmq queues by mask?
Hello.
Comrades, I have some (>100) number of queues that need to be purged in a rabbit, they all look like {some name}.fault
Is it possible to purify them all by mask?
Now I purge them with a script via curl, but this is not very convenient, because I still have to pull out their names with my hands, is it possible to clear them somehow like this?:
curl -i -u 'admin':'admin' -H "content -type:application/json" -XDELETE rabbitmq:15672/api/queues/all/*.fault
Although while writing the question, the following solution arose in my head: maybe you can get a list of all queues also via api, sort by mask "* .fault" and a simple script using for to purge?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question