I'm not quite sure how celery works, but I suspect that you want to clear the RabbitMQ queue (you are currently simulating this by removing queues and adding celery).
You can install the RabbitMQ Control Plugin . Its WebUI will allow you to clear the required queue. It should also tell you which queue you are aiming at, so you wonβt need to delete everything.
As soon as you find out in which queue, you can purge it programmatically. For example, using py-amqplib , you would do something like:
from amqplib import client_0_8 as amqp conn = amqp.Connection(host="localhost:5672", userid="guest", password="guest", virtual_host="/", insist=False) conn = conn.channel() conn.queue_purge("the-target-queue")
Probably the best way to do this.
source share