< Back

Remove-NsxLogicalRouter

Sat Jan 18, 2020 9:23 pm

NAME Remove-NsxLogicalRouter



SYNOPSIS

Deletes a Logical Router object.





SYNTAX

Remove-NsxLogicalRouter [-LogicalRouter] <XmlElement> [-Confirm] [-Connection <PSObject>] [<CommonParameters>]





DESCRIPTION

An NSX Logical Router is a distributed routing function implemented within

the ESXi kernel, and optimised for east west routing.



This cmdlet deletes the specified Logical Router object.





PARAMETERS

-LogicalRouter <XmlElement>



Required? true

Position? 2

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompt for confirmation. Specify as -confirm:$false to disable confirmation prompt



Required? false

Position? named

Default value True

Accept pipeline input? false

Accept wildcard characters? false



-Connection <PSObject>

PowerNSX Connection object



Required? false

Position? named

Default value $defaultNSXConnection

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 (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Example1: Remove Logical Router LR1.



PS C:\\> Get-NsxLogicalRouter LR1 | Remove-NsxLogicalRouter



Example2: No confirmation on delete.

PS C:\\> Get-NsxLogicalRouter LR1 | Remove-NsxLogicalRouter -confirm:$false











RELATED LINKS