Purge a queue in a vhost
Delete all messages from my_queue in my_vhost. The queue itself stays
rabbitmqctl purge_queue my_queue -p my_vhost
More rabbitmq commands
-
rabbitmqctl list_exchanges name type durableShow all exchanges with their type and durable flag
-
rabbitmqctl list_bindings -p my_vhostShow bindings between exchanges and queues in my_vhost
-
rabbitmq-plugins enable rabbitmq_management && rabbitmqctl restartTurn on the web UI on port 15672
-
curl -s -u guest:guest http://localhost:15672/api/definitions | jq '.' > rabbitmq-defs.jsonSave vhosts, exchanges, policies and other definitions to a file via the management API
-
rabbitmqctl list_queues name messages consumers durableShow each queue with its message count, consumer count and durable flag