Skip to content

Instantly share code, notes, and snippets.

@dickbrouwer
Created August 24, 2012 00:03
Show Gist options
  • Save dickbrouwer/3443798 to your computer and use it in GitHub Desktop.
Save dickbrouwer/3443798 to your computer and use it in GitHub Desktop.
Clearing AMQP queue
from amqplib import client_0_8 as amqp
conn = amqp.Connection(host="localhost:5672", userid="<user>", password="<passwd>", virtual_host="<vhost>", insist=False)
conn = conn.channel()
conn.queue_purge("<queue_name>")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment