B
B
borodka_lenina2016-09-13 10:02:46
linux
borodka_lenina, 2016-09-13 10:02:46

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 question

Ask a Question

731 491 924 answers to any question