Purge a queue

Delete all messages from a queue without removing it

rabbitmqctl purge_queue <queue>

tool
rabbitmq15 commands
tags
rabbitmq

More rabbitmq commands

  • rabbitmqctl status

    Show node info, running applications, memory, listeners

  • rabbitmq-plugins enable rabbitmq_management

    Enable the HTTP management API and web UI on port 15672

  • rabbitmqctl export_definitions /tmp/rabbitmq-definitions.json

    Export all exchanges, queues, bindings, users, policies

  • rabbitmqctl list_queues name messages consumers

    Show queue names, message depth and consumer count

  • rabbitmqctl cluster_status

    Show cluster nodes, disk nodes and partitions

all 15 rabbitmq commands