Unable to delete Lengthy Folder

Status
Not open for further replies.
I got a folder structure with a very large tree of sub folders. I wrote a script to delete folders older than 30 days. But some folders are not getting deleted.

Then I have tried deleting that folder manually, but getting an error message like 'Unable to delete folder'. I have renamed one parent folder into a single character, then tried deleting the entire tree and succeeded.

What will be the actual problem? file length? but its not exceeding more than 250 chars.

I want to automate this task. Please help me on this issue.
 
Maybe the script/user needs somekind of administrator privilege?

Because if it says unable to delete that normally means that you don't have the rights or it's in use.

Try deleting in safe mode..
 
Status
Not open for further replies.
Back