Skip to content

Instantly share code, notes, and snippets.

@bsingr
Last active October 19, 2023 12:16
Show Gist options
  • Save bsingr/37e9619020ee294556654957d995bfa0 to your computer and use it in GitHub Desktop.
Save bsingr/37e9619020ee294556654957d995bfa0 to your computer and use it in GitHub Desktop.
rabbitmq remove amq.gen queues
#!/bin/sh
USER=admin
PASS=a
rabbitmqadmin -u "$USER" -p "$PASS" list queues | grep -oP "amq.gen-[\w\-]+"
#!/bin/sh
USER=admin
PASS=a
rabbitmqadmin -u "$USER" -p "$PASS" list queues | grep -oP "amq.gen-[\w\-]+" | while read line; do rabbitmqadmin -u "$USER" -p "$PASS" delete queue name=$line; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment