Data ONTAP® PowerShell Toolkit

Switch to Data ONTAP Cluster-mode documentation.

Cmdlet: Remove-NaDirectory


NAME
Remove-NaDirectory

SYNOPSIS
Delete a directory.

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


DESCRIPTION
Delete a directory.


PARAMETERS
-Path <String>
Path of the directory, i.e. /vol/<volumename>/<dirname>.

Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
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: file
API: file-delete-directory

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

C:\PS>Remove-NaDirectory /vol/vol0/etc/testdir2


Delete the 'testdir' directory in /etc.


Delete directory
Are you sure you want to delete directory /vol/vol0/etc/testdir2?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help
(default is "Y"):



RELATED LINKS
New-NaDirectory
Read-NaDirectory
Rename-NaDirectory







 Data ONTAP® PowerShell Toolkit