def delete(name, options = {})
      deleted = false
      if usable?
        begin
          @queues.reject! do |q|
            if q.name == name
              @channel.queue(name, options.merge(:no_declare => true)).delete
              deleted = true
            end
          end
          unless deleted
            # Allowing declare to happen since queue may not exist and do not want NOT_FOUND
            # failure to cause AMQP channel to close
            @channel.queue(name, options.merge(:no_declare => true)).delete
            deleted = true
          end
        rescue StandardError => e
          logger.exception("Failed deleting queue #{name.inspect} on broker #{@alias}", e, :trace)
          @exception_stats.track("delete", e)
        end
      end
      deleted
    end
def delete(name, options = {})
      deleted = false
      if usable?
        begin
          @queues.reject! do |q|
            if q.name == name
              @channel.queue(name, options.merge(:no_declare => true)).delete
              deleted = true
            end
          end
          unless deleted
            # Allowing declare to happen since queue may not exist and do not want NOT_FOUND
            # failure to cause AMQP channel to close
            @channel.queue(name, options.merge(:no_declare => true)).delete
            deleted = true
          end
        rescue StandardError => e
          logger.exception("Failed deleting queue #{name.inspect} on broker #{@alias}", e, :trace)
          @exception_stats.track("delete", e)
        end
      end
      deleted
    end
Delete queue

 === Parameters
 name(String):: Queue name
 options(Hash):: Queue declare options

 === Return
 (Boolean):: true if queue was successfully deleted, otherwise false