You can remove a component from the terminal by typing
ng d component "your_component"
Maybe the same way you can delete your route
ng d route "your_route_name"
I have not tried deleting the route yet, but the removal of components has been deleted for me, maybe you can try :)
source share