def delete(self, exchange, if_unused=False, nowait=True, ticket=None,
               cb=None):
        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)
Delete an exchange.
dataset/ETHPy150Open agoragames/haigha/haigha/classes/exchange_class.py/ExchangeClass.delete