@asyncio.coroutine<EOL><INDENT>def delete(self, *, if_unused=True, if_empty=True):<DEDENT>
if self.deleted:<EOL><INDENT>raise Deleted("<STR_LIT>".format(self.name))<EOL><DEDENT>self.sender.send_QueueDelete(self.name, if_unused, if_empty)<EOL>yield from self.synchroniser.wait(spec.QueueDeleteOK)<EOL>self.deleted = True<EOL>self.reader.ready()<EOL>
Delete the queue.

This method is a :ref:`coroutine <coroutine>`.

:keyword bool if_unused: If true, the queue will only be deleted
    if it has no consumers.
:keyword bool if_empty: If true, the queue will only be deleted if
    it has no unacknowledged messages.