ONTAP Discussions

Delete a Directory directly on the filer


Ontap is 8.1.4 7mode, volume and qtree are NTFS-Style, shared via CIFS. NFS is possible but actually not used.

On the shared qtree is a directory, which cannot be accessed - it isnt possible to gain the ownership nor any access-permissions.


So I want to delete the dir directly on the filer, which does not succed due the lack of a rd command or similar - what can I do?


Thanks in advance




Hi Peter,


You could try using the file-delete-directory API (which equates to the Remove-NaDirectory PowerShell CmdLet) however i think it should be possible to take ownership of the data and reset the NTFS permissions. If in doubt you can flexclone the volume and configure the permissions on the clone to ensure there is no data within the directory that you still require before deleting it. Hope this helps



If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.


In addition: did try to mount the qtree on a linux-box - mount is possible, but cannot access the dir - got a "access denied" - maybe the NTFS-Style is the problem - but cannot change this ....

NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner