Is there a simple way of doing this via a shell command / batch ? A VBScript would also be ok.
To clear all routes, use:
To clear only persistent routes, you could use
reg delete HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\PersistentRoutes /va /fbut this wouldn't remove them from the currently active routes.
Here is a cmd-script that extracts the static routes from the registry, and issues
This method removes them both from the stored list of persistent routes, and from the currently active routes.