class Roda::RodaPlugins::MiddlewareStack::Stack

def remove

and any middleware arguments given, but not the middleware block
Removes any middleware where the block returns true. Yields the middleware
def remove
  @middleware.delete_if do |m, _|
    yield(*m)
  end
  @app.send(:build_rack_app)
  nil
end