title: RabbitMQ: Auto-clean \ Deleting queues after consuming message
body: <p>My application would need to connect to a RabbitMQ queue and consume the message in it (only 1) . And I must also make sure that the queue is deleted right after the message is consumed. I was looking for a way to do this, with simple configurations. Is that possible? If yes, how?</p>
  
  <p>I was thinking of the following options:</p>
  
  <p><em>setting exclusive to true:</em></p>
  
  <p>I believe this would mean auto-delete is also set as true (unless set specifically as false). And the queue would get deleted when the 'last consumer is cancelled'. But what does this actually imply? Does this mean it will get deleted once the messages are consumed? Also does this mean that it can be only consumed using the connection which declared the queue?</p>
  
  <p><em>setting the expiration parameter to x seconds:</em></p>
  
  <p>This would be a cleaner way to destroy the queue I believe. But the problem here is finding the right value. The message from the queue can be consumed in 3 seconds - but also can so happen that it takes up to a minute or more. In this case, it would remain until the expiration seconds - even if the queue is consumed much earlier.</p>
  
  <p><em>Are there better alternatives?</em></p>