Skip to content

Instantly share code, notes, and snippets.

@shri3k
Created August 27, 2019 15:01
Show Gist options
  • Save shri3k/3beb9f3842ba8e9b9c40ff27df35ce6c to your computer and use it in GitHub Desktop.
Save shri3k/3beb9f3842ba8e9b9c40ff27df35ce6c to your computer and use it in GitHub Desktop.
delete all queues in rabbitmq
rabbitmqctl list_queues | tail -n +4 | awk 'BEGIN {FS="\t"} /amp/ { print $1 }' | xargs -L 1 rabbitmqctl delete_queue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment