PowerCLI Reference



This cmdlet removes an existing HCX Network Profile.


Remove-HCXNetworkProfile -NetworkProfile <HCXNetworkProfile> [-Server <HcxServer[]>] [-Confirm] [-InterconnectNetworkType <InterconnectNetworkType>] [-WhatIf] [<CommonParameters>]

Related Commands

Detailed Description

This cmdlet removes an existing HCX Network Profile.


NameTypeDescriptionRequired?Pipeline InputDefault Value
ConfirmSwitchParameterPrompts you for confirmation before running the cmdlet.falseFalse
InterconnectNetworkTypeInterconnectNetworkTypeSpecifies network type to be removed from Service Mesh or Compute Profile's Network.falseFalse
NetworkProfileHCXNetworkProfileSpecifies the Network Profile that you want to remove. To retrieve a Network Profile, use the Get-HCXNetworkProfile cmdlet.trueTrue (ByValue)
ServerHcxServer[]Specifies the HCX Server systems on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-HCXServer cmdlet.falseFalse
WhatIfSwitchParameterShows what would happen if the cmdlet runs. The cmdlet is not run.falseFalse

Return Type




-------------------------- Example 1 --------------------------

PS C:\> $myNetworkProfile = Get-HCXNetworkProfile -Name "myNetworkProfile"
		Remove-HCXNetworkProfile -NetworkProfile $myNetworkProfile

Removes the Network Profile.

Copyright © VMware, Inc. All rights reserved.