code: def delete(self, exchange='', if_unused=False):
          
          if not compatibility.is_string(exchange):
              raise AMQPInvalidArgument('exchange should be a string')
  
          delete_frame = pamqp_exchange.Delete(exchange=exchange,
                                               if_unused=if_unused)
          return self._channel.rpc_request(delete_frame)
docs: Delete an Exchange.
  
          :param str exchange: Exchange name
          :param bool if_unused: Delete only if unused
  
          :raises AMQPInvalidArgument: Invalid Parameters
          :raises AMQPChannelError: Raises if the channel encountered an error.
          :raises AMQPConnectionError: Raises if the connection
                                       encountered an error.
  
          :rtype: dict