Unable to delete deep folder structure

1

I am unable to remove a very deep directory tree. When I try to delete it normally, it just stays at 0% and nothing happens.

I have tried using the robocopy method with /purge, which ran for over 1 hour with nothing happening.

I then tried the Deep Remove tool from here: https://github.com/juanpablojofre/deepremove

It says it detected 1520 folders and then I get this error message:

Deep Remove error message

I have successfully used the deep remove software before, but it doesn't work in this case. I think it might be because the subdirectories don't have the same name, but are somehow named better-ticket-machine and better-ticket-machin every other folder. Does anyone have any idea about how to fix this?

Ahnson

Posted 2017-09-23T17:39:01.973

Reputation: 11

1Looks like a folder has a subfolder hardlinked to its parent, though that shouldn't be possible. Does a chkdsk help? – Ben N – 2017-09-23T18:00:27.193

If it's legit structure you could dive deep into the structure and then be sure the folder you are in that the remaining characters are less than 255, create a share at that folder level as share1$ and then after that close all instances of any explorer you have opened with any of these folders, etc. Now connect to the \\localhost\share1$ and the very first folder delete it, etc. you then undo the share and repeat the same process again leaving under 255 chars in the full path.Otherwise, consider booting to Linux disk or something and try to remove. – Pimp Juice IT – 2017-09-23T18:02:45.883

Answers

0

You can use this tool to scan the directory tree to find path names longer than 255 characters:

https://sourceforge.net/projects/tlpd/files/v4.6/source/

and then rename them.

TLPD was developed as a complementary product for the EVACopy project: http://evacopy.sourceforge.net

liamZ

Posted 2017-09-23T17:39:01.973

Reputation: 101