<div>This is not a classic reply queue setup where only two processes are involved. �I have three processes involved here:</div><div><br></div>In one process I&#39;ve created a &quot;reply queue&quot; with auto_delete true and I bind it to an exchange (using the queue&#39;s name as the routing key). �I then publish a message and include the reply queue&#39;s name in &quot;reply_to&quot; property -- I&#39;m passing the routing key to another process it can use for replying.<div>

<br></div><div>The consumer picks up that message off a queue and then publishes a new message (the &quot;reply&quot;) to the reply queue using the routing key provided.</div><div><br></div><div>Finally, in a third process that knows the reply queue&#39;s name a &quot;amqp_basic_get&quot; is used to consume from reply queue. �This process now has the &quot;reply&quot; message. �This is working as expected.</div>

<div><br></div><div>But, when that&#39;s all done the queue is still around:</div><div><br></div><div><div>$ sudo rabbitmqctl -q list_queues name messages consumers auto_delete</div><div>amq.gen-tYjOPWR6ZV0crLn5ga5KZg== � � � �0 � � � 0 � � � true</div>

<div><br></div><div>So, there&#39;s no consumers on the queue, and it&#39;s flagged auto_delete. �An I misunderstanding how auto_delete works on queues?</div><div><br></div><div>Is the problem that when I created the &quot;amq.gen-tYjOPWR6ZV0crLn5ga5KZg== &quot; queue that there were no consumers so the queue will never get deleted?</div>

<div><br></div><div>Is using &quot;x-expires&quot; the solution?</div><br>-- <br>Bill Moseley<br><a href="mailto:moseley@hank.org" target="_blank">moseley@hank.org</a><br>
</div>