This is the built-in help made by Microsoft for the command 'Remove-NetRoute', in PowerShell version 4 - as retrieved from
Windows version 'Microsoft Windows 8.1 Enterprise' PowerShell help files on 2016-06-23.
For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.
Removes IP routes from the IP routing table.
Remove-NetRoute [[-DestinationPrefix] <String[]>] [-AddressFamily <AddressFamily[]>] [-AsJob] [-AssociatedIPInterface <CimInstance>] [-CimSession <CimSession[]>] [-In
cludeAllCompartments] [-InterfaceAlias <String[]>] [-InterfaceIndex <UInt32[]>] [-NextHop <String[]>] [-PassThru] [-PolicyStore <String>] [-PreferredLifetime <TimeSpa
n[]>] [-Protocol <Protocol[]>] [-Publish <Publish[]>] [-RouteMetric <UInt16[]>] [-ThrottleLimit <Int32>] [-ValidLifetime <TimeSpan[]>] [-Confirm] [-WhatIf] [<CommonPa
rameters>]
Remove-NetRoute [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-ThrottleLimit <Int32>] -InputObject <CimInstance[]> [-Confirm] [-WhatIf] [<CommonParameters>]
The Remove-NetRoute cmdlet removes IP routes from the IP routing table. Run this cmdlet without any parameters to remove all IP routes from the routing table, includi
ng default routes. You can also specify routes to remove by specifying parameters, or by using the Get-NetRoute cmdlet.
For more information about routing, see Chapter 5 - IP Routing (http://technet.microsoft.com/library/bb727001.aspx) in the TechNet library.
<
Online Version: http://go.microsoft.com/fwlink/?LinkID=288400
Find-NetRoute
Get-NetRoute
New-NetRoute
Set-NetRoute
Get-NetIPInterface
<
Example 1: Remove all routes
PS C:\>Remove-NetRoute
This command removes all of the IP routes on the computer, including default routes.
Example 2: Remove routes for a specified next hop
PS C:\>Remove-NetRoute –NextHop "192.168.0.1"
This command removes all of the IP routes that have a next hop of 192.168.0.1.