[rabbitmq-discuss] Deleting all queues in rabbitmq.

Laing, Michael michael.laing at nytimes.com
Tue Oct 29 11:28:15 GMT 2013


You can also delete the vhost containing the queues - of course this
deletes the exchanges in that vhost as well...

And then use the broker defs as Emile suggested but without requiring a
restart.

Good luck,

Michael


On Tue, Oct 29, 2013 at 7:14 AM, Simon MacMullen <simon at rabbitmq.com> wrote:

> 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
>
> ______________________________**_________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.**rabbitmq.com<rabbitmq-discuss at lists.rabbitmq.com>
> https://lists.rabbitmq.com/**cgi-bin/mailman/listinfo/**rabbitmq-discuss<https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20131029/8d43e9cd/attachment.htm>


More information about the rabbitmq-discuss mailing list