'Delete `exchange` and all its bindings.'

def exchange_delete(self, exchange, if_unused=False, nowait=False):

    for (rkey, _, queue) in self.get_table(exchange):
        self.queue_delete(queue, if_unused=True, if_empty=True)
    self.state.exchanges.pop(exchange, None)
