|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Remove-NcQtree
NAME
Remove-NcQtree
SYNOPSIS
Delete a qtree.
SYNTAX
Remove-NcQtree [-Volume] <String> [[-Qtree] <String>] [-Force] [-Async] [-Vs
erverContext <String>] [-Controller <NcController[]>] [-WhatIf] [-Confirm] [
<CommonParameters>]
DESCRIPTION
Delete a qtree. All quota rules that reference this qtree will be automatic
ally deleted.
PARAMETERS
-Volume <String>
Name of the volume containing the qtree to delete. This parameter may a
lso be the complete path of the qtree in the format /vol/<volume>/<qtree
>, in which case the Qtree parameter should not be specified.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Qtree <String>
The path of the qtree, relative to the volume, to delete.
Required? false
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Force
Force the deletion of the qtree even if it is not empty.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Async
Delete the specified qtree by spawning a background job.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-VserverContext <String>
Vserver to which to direct this command. If the currently connected con
troller (as embodied by an NcController object) represents a cluster, th
ere are multiple means to address commands to one of its vservers. Eith
er set the Vserver field on the NcController object to direct all subseq
uent commands to that vserver, or supply the VserverContext parameter to
an individual cmdlet. Only cmdlets which may be invoked on vservers of
fer the VserverContext parameter.
Required? false
Position? named
Default value
Accept pipeline input? false
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: qtree
API: qtree-delete, qtree-delete-async
Family: vserver
-------------- Example 1 --------------
C:\PS>Remove-NcQtree /vol/test/qtree1
Remove a qtree.
-------------- Example 2 --------------
C:\PS>Get-NcQtree /vol/test/qtree* | Remove-NcQtree -Async | Get-NcJob
Remove all qtrees matching the pattern '/vol/test/qtree*' asynchronously and
show the resulting job objects.
JobId JobName JobPriority JobState JobVserver JobCompletion
----- ------- ----------- -------- ---------- -------------
4282 Qtree Delete high running Knight01
4283 Qtree Delete high queued Knight01
4284 Qtree Delete high queued Knight01
4285 Qtree Delete high queued Knight01
4286 Qtree Delete high queued Knight01
RELATED LINKS
Get-NcQtree
Get-NcJob
| Copyright © 2012 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|