[rabbitmq-discuss] Deleting all queues in rabbitmq.
Simon MacMullen
simon at rabbitmq.com
Tue Oct 29 11:14:57 GMT 2013
On 29/10/13 10:05, Emile Joubert wrote:
> Don't try to delete queues by modifying the contents of the data store
> on disk.
Yeah, seriously, this.
Another option for deleting all queues (since 3.2.0) is to define a
policy which gives every queue a very short expiry.
$ rabbitmqctl set_policy deleter ".*" '{"expires":1}' --apply-to queues
Then - assuming your queues are unused, which I assume is why you're
deleting them - this will expire them near-immediately. Remember to
delete the policy again afterwards, or you'll struggle to declare
anything...
$ rabbitmqctl clear_policy deleter
Cheers, Simon
--
Simon MacMullen
RabbitMQ, Pivotal
More information about the rabbitmq-discuss
mailing list