ASP.NET - How to clear your friendly URL routes


Scenario:

You are using "System.Web.Routing" and you want to clear routes that you setup when your application loaded (and then possibly re-load with updated content).

Solution:

You can clear the RouteTable with this command:

VB.Net

System.Web.Routing.RouteTable.Routes.Clear()

C#

System.Web.Routing.RouteTable.Routes.Clear();