[rabbitmq-discuss] Deleting all queues in rabbitmq.

Michael Klishin michael at rabbitmq.com
Tue Oct 29 14:34:44 GMT 2013


On 29 Oct 2013, at 18:30, k.madnani84 <k.madnani84 at gmail.com> wrote:

> $ rabbitmqctl set_policy deleter ".*" '{"expires":1}' --apply-to queues 
> 
> Can you please elaborate on parameters passed here specially expires,Is it
> some time duration?.

This line creates a policy named deleter which applies to all names (.*)
and will be applied to queues.

See https://www.rabbitmq.com/ttl.html.

> .And i believe 'apply-to' takes exchanges as well?

Policies can be used with exchanges but exchanges cannot have TTL.

MK

Software Engineer, Pivotal/RabbitMQ




More information about the rabbitmq-discuss mailing list