NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

ONTAP Discussions

Delete a Directory directly on the filer

Support-HE
6,884 Views

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

Peter

2 REPLIES 2

Support-HE
6,879 Views

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 ....

mbeattie
6,836 Views

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

 

/Matt

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