Data ONTAP® PowerShell Toolkit

Switch to Data ONTAP Cluster-mode documentation.

Cmdlet: Remove-NaLun


NAME
Remove-NaLun

SYNOPSIS
Destroy the specified LUN.

SYNTAX
Remove-NaLun [-Path] <String> [-Force] [-Controller <NaController>] [-WhatIf
] [-Confirm] [<CommonParameters>]


DESCRIPTION
Destroy the specified LUN. This operation will fail if the LUN is currently
mapped and is online. The force option can be used to destroy it regardles
s of being online or mapped.


PARAMETERS
-Path <String>
Path of the LUN.

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

-Force
Forcibly destroy the LUN regardless of it being online or mapped.

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

-Controller <NaController>
The Data ONTAP controller object, embodied by an NaController object. T
his parameter is returned by the Connect-NaController cmdlet. If not sp
ecified, the value in the global variable CurrentNaController is used.

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: lun
API: lun-destroy

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

C:\PS>Remove-NaLun /vol/vol2/lun101


Destroy LUN 'lun101'.






RELATED LINKS
Get-NaLun
Set-NaLun
New-NaLun







 Data ONTAP® PowerShell Toolkit