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 Folder in 7mode

Muru
3,206 Views

I don't have permission for respective folder (ex) \\share-IP\xyz\soure\restore . I need delete the " restore" folder.

 

actually i am part of BUILTIN\Administrators but i am unable to access the share  \\share-IP\xyz\soure\restore.

 

Can you please help me this. Is there any option like "setcbprivilege"

3 REPLIES 3

RossC
3,096 Views

Hi @Muru 

 

The following KB article might be helpful to you - https://kb.netapp.com/Advice_and_Troubleshooting/Data_Storage_Software/ONTAP_OS_7_Mode/How_to_delete_a_qtree_or_directory

 

Alternatively, you can try to troubleshoot why your access is not allowing you to delete the folder/files - https://kb.netapp.com/Advice_and_Troubleshooting/Data_Storage_Software/ONTAP_OS_7_Mode/How_to_troubleshoot_Microsoft_Client_permission_issues_on_a_Dat...

 

Hope this helps.

Muru
3,058 Views

@RossC thanks for your response, I don't have permission on that share and share sub folder. I can delete the only file through netapp diag mode using  "rm" command.

 

I need delete the entire folder ( sub folder (ex) \\share-IP\xyz\soure\restore  ---->  restore folder i need delete)

RossC
3,052 Views

Hi @Muru 

 

Thanks for the follow up. So the command would be "rmdir" not "rm". "rmdir" should let you delete the folder rather than an individual file. 

 

This KB Article https://kb.netapp.com/Advice_and_Troubleshooting/Data_Storage_Software/ONTAP_OS_7_Mode/How_to_delete_a_qtree_or_directory does share the specific "rmdir" commands to run. 

 

Hope this clarifies. 

Public