Skip to content

Remove-OVNetworkSet

Syntax

Remove-OVNetworkSet
    [-NetworkSet] <Object>
    [-ApplianceConnection] <Object>
    [<CommonParameters>]

Description

Delete a network set and its corresponding default connection type.

Examples

Example 1

$task = Remove-OVNetworkSet -networkSet "MyNetSet"
Wait-OVTaskComplete $task

Remove the network set specifed by name. Wait for remove to complete.

Example 2

$netSet = Get-OVNetworkSet -name "MyNetSet" | Remove-OVNetwork

Remove the specified network set.

Example 3

Get-OVNetworkSet | Remove-OVNetworkSet

Search for all network sets and remove them from appliance.

Parameters

-NetworkSet <Object>

The network set object(s), name(s) or uri(s) to be deleted. If providing a URI, you must specify an Appliance Connection.

Aliases uri, name
Required? True
Position? Named
Default value
Accept pipeline input? true (ByValue)
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? True
Position? Named
Default value (${Global:ConnectedSessions} | ? Default)
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? False

-WhatIf <SwitchParameter>

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

-Confirm <SwitchParameter>

Aliases cf
Required? False
Position? Named
Default value
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 (http://go.microsoft.com/fwlink/?LinkID=113216)

Input Types

Network Set resource object

Return Values

Removal task