code: def delete(self, exchange, if_unused=False, nowait=True, ticket=None,
                 cb=None):
          '''
          Delete an exchange.
          '''
          nowait = nowait and self.allow_nowait() and not cb
  
          args = Writer()
          args.write_short(ticket or self.default_ticket).\
              write_shortstr(exchange).\
              write_bits(if_unused, nowait)
          self.send_frame(MethodFrame(self.channel_id, 40, 20, args))
  
          if not nowait:
              self._delete_cb.append(cb)
              self.channel.add_synchronous_cb(self._recv_delete_okf delete(self, exchange, if_unused=False, nowait=True, ticket=None,
                 cb=None):
          '''
          Delete an exchange.
          '''
          nowait = nowait and self.allow_nowait() and not cb
  
          args = Writer()
          args.write_short(ticket or self.default_ticket).\
              write_shortstr(exchange).\
              write_bits(if_unused, nowait)
          self.send_frame(MethodFrame(self.channel_id, 40, 20, args))
  
          if not nowait:
              self._delete_cb.append(cb)
              self.channel.add_synchronous_cb(self._recv_delete_ok)
docs: Delete an exchange.