Data ONTAP® PowerShell Toolkit

Cmdlet: Remove-NaPortset


NAME
Remove-NaPortset

SYNOPSIS
Destroys an existing port set.

SYNTAX
Remove-NaPortset [-Name] <String> [-Force] [-Controller <NaController>] [-Wa
rningAction <ActionPreference>] [-WarningVariable <String>] [-WhatIf] [-Conf
irm] [<CommonParameters>]


DESCRIPTION
Destroys an existing port set. By default a set cannot be destroyed if there
are existing igroup associated with that set.


PARAMETERS
-Name <String>
Name of the port set to destroy.

Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false

-Force
Forcibly destroy the portset, even if there are existing igroup bindings
. Best practice is to attempt to unbind all the associated igroups befor
e destroying it.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Controller <NaController>
The DataONTAP controller object, embodied by an NaController object. Th
is parameter is returned by the Connect-NaController cmdlet. If not spe
cified, the value in the global variable CurrentNaController is used.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WarningAction <ActionPreference>


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WarningVariable <String>


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WhatIf


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Confirm


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 and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS



NOTES


Category: portset
API: portset-destroy

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

C:\PS>Remove-NaPortset portset1


Destroy portset 'portset1'.






RELATED LINKS
New-NaPortset
Get-NaPortset







 Data ONTAP® PowerShell Toolkit