Removes a route or an array of routes by name from all connected collections (this instance and all parents and children).
string|array $name The route name or an array of route names:
public function remove($name) {
$root = $this
->getRoot();
foreach ((array) $name as $n) {
$root
->removeRecursively($n);
}
}