How do I delete all messages from a single queue using the CLI?
rabbitmqadmin is the perfect tool for this
rabbitmqadmin purge queue name=name_of_the_queue_to_be_purged
you can directly run this command
sudo rabbitmqctl purge_queue queue_name