Today I needed to remove a bad route on macOS. Normally I just reboot to do that, but I decided to learn how to do it without rebooting.
Here’s how I did it.
First, view the routes to confirm the route is bad:
netstat -rn | grep IP_ADDR
Grab the IP you care about from the “Destination” column. Use it to delete the route:
sudo route -n delete DEST_IP_ADDR
Done!