Created
September 3, 2009 15:39
-
-
Save mhorbul/180361 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bash # erl -sname foo -setcookie `cat /var/run/rabbitmq/.erlang.cookie` -remsh rabbit@<vhostname> | |
# Once inside the erlang shell, use: | |
erl> rabbit_amqqueue:stat_all(). | |
# Find the queue name you need. If it's the first one on the list, for example, use this: | |
erl> {ok, Worker, _, _} = lists:nth(1,rabbit_amqqueue:stat_all()). | |
erl> {ok, Q} = rabbit_amqqueue:lookup(Worker). | |
# Purge the particular queue | |
erl> rabbit_amqqueue:purge(Q). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment