'Delete queue.'

def queue_delete(self, queue, if_unused=False, if_empty=False, **kwargs):

    if (if_empty and self._size(queue)):
        return
    for (exchange, routing_key, args) in self.state.queue_bindings(queue):
        meta = self.typeof(exchange).prepare_bind(queue, exchange, routing_key, args)
        self._delete(queue, exchange, *meta, **kwargs)
    self.state.queue_bindings_delete(queue)
