Skip to content

Remove-OVNetwork

Syntax

Remove-OVNetwork
    [-InputObject] <Object>
    [-ApplianceConnection] <Object>
    [-Force]
    [<CommonParameters>]

Description

Delete a network and its corresponding default connection type.

Examples

Example 1

$task = Remove-OVNetwork -network "yellow"
Wait-OVTaskComplete $task

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

Example 2

$Net = Get-OVNetwork -name "yellow"
Remove-OVNetwork -network $net -confirm:$false

Remove the network specifed by $net, and do not prompt for confirmation.

Example 3

Get-OVNetwork | Remove-OVNetwork

Search for all networks and remove them from appliance.

Parameters

-InputObject <Object>

The network object(s) or name(s) to be deleted.

Aliases uri, name, network, Resource
Required? True
Position? Named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? False

-ApplianceConnection <Object>

Specify one [HPEOneView.Appliance.Connection] object or Name property value. 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

-Force <SwitchParameter>

Forcefully remove the network object.

Aliases None
Required? False
Position? Named
Default value False
Accept pipeline input? false
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 Name or URI

Network Resource Object

Return Values

Async Removal task