Data ONTAP® PowerShell Toolkit

Switch to Data ONTAP 7-mode documentation.

Cmdlet: Remove-NcQosWorkload


NAME
Remove-NcQosWorkload

SYNOPSIS
Remove a workload.

SYNTAX
Remove-NcQosWorkload [-WorkloadUuid] <String> [-Controller <NcController[]>]
[-WhatIf] [-Confirm] [<CommonParameters>]

Remove-NcQosWorkload -Query <QosWorkloadInfo> [-ContinueOnFailure] [-MaxFail
ureCount <Int32>] [-Controller <NcController[]>] [-WhatIf] [-Confirm] [<Comm
onParameters>]


DESCRIPTION
Remove a workload. This also deletes any streams attached to the workload.
Only user defined workloads may be deleted.


PARAMETERS
-WorkloadUuid <String>
Universally unique identifier for the workload to which the stream is at
tached.

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

-Query <QosWorkloadInfo>
A QosWorkloadInfo object with various fields set to indicate which QoS w
orkloads to delete. Other fields should remain set to null. Use "Get-N
cQosWorkload -Template" to get the initially empty QosWorkloadInfo objec
t.

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

-ContinueOnFailure
This input element is useful when multiple objects match a given query.
If set to true, the API will continue removing the next matching object
even when removal of a previous object fails. If set to false, the API
will return on the first failure. Default: false.

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

-MaxFailureCount <Int32>
When allowing failures, then this input element may be provided to limit
the number of failed remove operations before the server gives up and r
eturns. If set, the cmdlet will continue removing the next matching obj
ect even when the removal of a previous matching object fails, and do so
until the total number of objects failed to be removed reaches the maxi
mum specified. If set to the maximum or not provided, then there will b
e no limit on the number of failed remove operations. Only applicable i
f ContinueOnFailure is specified. Default: 2^32-1

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: qos
API: qos-workload-destroy, qos-workload-iter
Family: cluster

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

C:\PS>Remove-NcQosWorkload -WorkloadUuid 9c4c3de2-6e0d-11e1-a794-12347856341
2


Remove the given workload.





-------------- Example 2 --------------

C:\PS>$q = Get-NcQosWorkload -Template
$q.WorkloadName = "test-workload"
Remove-NcQosWorkload -Query $q


Remove the workloads that match the given query.


SuccessCount : 1
FailureCount : 0
SuccessList : {NetApp.Ontapi.Filer.C.Qos810.QosWorkloadInfo}
FailureList : {}



RELATED LINKS
Get-NcQosWorkload
New-NcQosWorkload
Set-NcQosWorkload
Update-NcQosWorkload







 Data ONTAP® PowerShell Toolkit