Data ONTAP® PowerShell Toolkit

Switch to Data ONTAP Cluster-mode documentation.

Cmdlet: Remove-NaNfsExport


NAME
Remove-NaNfsExport

SYNOPSIS
Removes the rules for a set of pathnames.

SYNTAX
Remove-NaNfsExport [-Paths] <String[]> [-Persistent] [-Controller <NaControl
ler>] [-WhatIf] [-Confirm] [<CommonParameters>]

Remove-NaNfsExport [-AllPaths] [-Persistent] [-Controller <NaController>] [-
WhatIf] [-Confirm] [<CommonParameters>]


DESCRIPTION
Removes the rules for a set of pathnames. This returns an error if any of th
e pathnames don't have a rule. Set the Persistent option to modify the etc/e
xports file and keep this change persistent upon reboots.


PARAMETERS
-Paths <String[]>
Pathnames to be deleted from the exports table.

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

-Persistent
Default value is false. Modify the etc/exports file to delete the rules
permanently. CAUTION: If AllPaths and Persistent are both specified, a
ll exports are removed permanently.

Required? false
Position? named
Default value false
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

-AllPaths
Default value is false. Specify to delete all rules. Paths must be left
empty if this option is true.

Required? false
Position? named
Default value false
Accept pipeline input? true (ByValue, ByPropertyName)
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
DataONTAP.Types.Nfs.DeletedRules


NOTES


Category: nfs
API: nfs-exportfs-delete-rules

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

C:\PS>Remove-NaNfsExport -Persistent /vol/testvol


Remove the export for volume 'testvol'.


DeletedPathnames UnexportedPathna
mes
---------------- ----------------
---
{/vol/testvol} {/vol/testvol}



RELATED LINKS
Add-NaNfsExport
Set-NaNfsExport
Get-NaNfsExport







 Data ONTAP® PowerShell Toolkit