Data ONTAP® PowerShell Toolkit

Switch to Data ONTAP 7-mode documentation.

Cmdlet: Remove-NcVserver


NAME
Remove-NcVserver

SYNOPSIS
Destroys a vserver and its objects.

SYNTAX
Remove-NcVserver [-Name] <String> [-Controller <NcController[]>] [-WhatIf] [
-Confirm] [<CommonParameters>]


DESCRIPTION
Destroys a vserver and its objects. All volumes and mirrors belonging to th
e vserver must be deleted using other cmdlets before destroying the vserver.
This cmdlet removes all other objects of this vserver including its networ
k interfaces, routes, configurations, admin login accounts and roles.


PARAMETERS
-Name <String>
Name of the vserver to destroy.

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

-Controller <NcController[]>
A Data ONTAP cluster-mode controller to receive this cmdlet, as embodied
by an NcController object. This parameter is returned by the Connect-N
cController cmdlet. If not specified, the value in the global variable
CurrentNcController is used. In the latter case, if CurrentNcController
contains a collection of NcController objects, this cmdlet is invoked o
n each controller in succession.

Required? false
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
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: vserver
API: vserver-destroy
Family: cluster

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

C:\PS>Stop-NcVserver vserver4
Set-NcVol -Offline vserver4vol0 -vs vserver4
Remove-NcVol vserver4vol0 -vs vserver4
Remove-NcVserver vserver4


Destroy vserver 'vserver4'.






RELATED LINKS
Get-NcVserver







 Data ONTAP® PowerShell Toolkit