code: def queue_delete(self, queue='',
                       if_unused=False, if_empty=False, nowait=False):
          
          args = AMQPWriter()
          args.write_short(0)
          args.write_shortstr(queue)
          args.write_bit(if_unused)
          args.write_bit(if_empty)
          args.write_bit(nowait)
          self._send_method((50, 40), args)
  
          if not nowait:
              return self.wait(allowed_methods=[
                  (50, 41),  # Channel.queue_delete_ok
              ])
docs: Delete a queue
  
          This method deletes a queue.  When a queue is deleted any
          pending messages are sent to a dead-letter queue if this is
          defined in the server configuration, and all consumers on the
          queue are cancelled.
  
          RULE:
  
              The server SHOULD use a dead-letter queue to hold messages
              that were pending on a deleted queue, and MAY provide
              facilities for a system administrator to move these
              messages back to an active queue.
  
          PARAMETERS:
              queue: shortstr
  
                  Specifies the name of the queue to delete. If the
                  queue name is empty, refers to the current queue for
                  the channel, which is the last declared queue.
  
                  RULE:
  
                      If the client did not previously declare a queue,
                      and the queue name in this method is empty, the
                      server MUST raise a connection exception with
                      reply code 530 (not allowed).
  
                  RULE:
  
                      The queue must exist. Attempting to delete a non-
                      existing queue causes a channel exception.
  
              if_unused: boolean
  
                  delete only if unused
  
                  If set, the server will only delete the queue if it
                  has no consumers. If the queue has consumers the
                  server does does not delete it but raises a channel
                  exception instead.
  
                  RULE:
  
                      The server MUST respect the if-unused flag when
                      deleting a queue.
  
              if_empty: boolean
  
                  delete only if empty
  
                  If set, the server will only delete the queue if it
                  has no messages. If the queue is not empty the server
                  raises a channel exception.
  
              nowait: boolean
  
                  do not send a reply method
  
                  If set, the server will not respond to the method. The
                  client should not wait for a reply method.  If the
                  server could not complete the method it will raise a
                  channel or connection exception.