Skip to content

Remove-OVLogicalSwitch

Syntax

Remove-OVLogicalSwitch
    [-InputObject] <Object>
    [-ApplianceConnection <Object>]
    [-Force]
    [-Async]
    [<CommonParameters>]

Description

This Cmdlet will remove the configured Logical Switch from the requested appliance(s). When you delete a logical switch, HPE OneView no longer manages the physical switches associated with it. Minimum required privileges: Infrastructure administrator or Network administrator

Examples

Example 1

Get-OVLogicalSwitch | Remove-OVLogicalSwitch

Remove all logical switch resources found on the default appliance connection.

Example 2

Get-OVLogicalSwitch -Name "My Logical Switch 1" | Remove-OVLogicalSwitch -confirm:$false

Remove the "My Logical Switch 1" resource.

Parameters

-InputObject <Object>

The Logical Switch resource Name or Object to update.

Aliases ls, LogicalSwitch
Required? True
Position? Named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? False

-Confirm <SwitchParameter>

Bypass the confirmation prompt, and process all of the objects.

Aliases cf
Required? False
Position? Named
Default value
Accept pipeline input? false
Accept wildcard characters? False

-Async <SwitchParameter>

Use this parameter to immediately return the async task. By default, the Cmdlet will wait for the task to complete.

Aliases None
Required? False
Position? Named
Default value
Accept pipeline input? false
Accept wildcard characters? False

-Force <SwitchParameter>

Force remove resource, even if there are communication problems.

Aliases None
Required? False
Position? Named
Default value
Accept pipeline input? false
Accept wildcard characters? False

-ApplianceConnection <Object>

Specify one or more [HPEOneView.Appliance.Connection] object(s) or Name property value(s). If Resource object is provided via Pipeline, the ApplianceConnection property of the object will be used.

Aliases Appliance
Required? False
Position? Named
Default value (${Global:ConnectedSessions} | ? Default)
Accept pipeline input? true (ByPropertyName)
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 (http://go.microsoft.com/fwlink/?LinkID=113216)

Input Types

Logical Switch resource.

Return Values

The async task resource object to monitor (if -Async was used) or results.

Collection of remove Logical Switch async task resources.