# Remove-RASPubItemPreferredRoute

## NAME

Remove-RASPubItemPreferredRoute

## SYNOPSIS

Removes a preferred route from the specified published resource.

## SYNTAX

**Remove-RASPubItemPreferredRoute** \[-[Id](#Id)] _\<uint>_ -[PreferredRouteId](#PreferredRouteId) _\<uint>_ \[-[SiteId](#SiteId) _\<uint>_] \[_<_[_CommonParameters_](#CommonParameters)_>_]

**Remove-RASPubItemPreferredRoute** \[-[InputObject](#InputObject)] _<_[_PubItem_](../classes-and-enumerations/pubitem)_>_ -[PreferredRouteId](#PreferredRouteId) _\<uint>_ \[-[SiteId](#SiteId) _\<uint>_] \[_<_[_CommonParameters_](#CommonParameters)_>_]

## DESCRIPTION

This cmdlet removes a preferred route from the specified published resource.

## PARAMETERS

-**PreferredRouteId \<uint>**\
The ID of the Preferred Route to be removed.

```
        Required?                    true

        Position?                    named

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**Id \<uint>**\
Published resource ID.

```
        Required?                    true

        Position?                    0

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**InputObject <**[**PubItem**](../classes-and-enumerations/pubitem)**>**\
An object specifying the published resource.

To obtain the object, use the Get-PubItem cmdlet.

```
        Required?                    true

        Position?                    0

        Default value                

        Accept pipeline input?       true (ByValue)

        Accept wildcard characters?  false
```

-**SiteId \<uint>**\
Site ID.

```
        Required?                    false

        Position?                    named

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

\<CommonParameters>

```
        This cmdlet supports the common parameters: Verbose, Debug,

        ErrorAction, ErrorVariable, WarningAction, WarningVariable,

        OutBuffer, PipelineVariable, and OutVariable. For more information, see 

        about_CommonParameters documentation. 
```

## INPUTS

[PubItem](../classes-and-enumerations/pubitem)

## OUTPUTS

-none-

## EXAMPLES

**---------- EXAMPLE 1 ----------**

Remove-RASPubItemPreferredRoute -Id 12 -PreferredRouteId 1

Removes the preferred route with ID 1 from the published resource with ID 12.

## RELATED LINKS

* [Get-RASPubItem](get-raspubitem)
* [Add-RASPubItemPreferredRoute](add-raspubitempreferredroute)
* [Get-RASPubItemPreferredRoute](get-raspubitempreferredroute)
* [Set-RASPubItemPreferredRoute](set-raspubitempreferredroute)
* [New-RASCustomRoute](new-rascustomroute)
* [Get-RASCustomRoute](get-rascustomroute)
* [Set-RASCustomRoute](set-rascustomroute)
* [Remove-RASCustomRoute](remove-rascustomroute)
* [Get-RASGateway](get-rasgateway)
* [Get-RASHALB](get-rashalb)
