Webiny\Component\Router\Route\RouteCollection::remove PHP Method

remove() public method

Removes the route under the given name.
public remove ( string $name )
$name string Route name.
    public function remove($name)
    {
        return $this->routes->removeKey($name);
    }