Symfony\Component\Routing\RouteCollection::remove
Removes a route or an array of routes by name from the collection
Signature
public function remove(string|array
$name )
Parameters
$name
— object- The route name or an array of route names