How do I delete a folder which is nested quite deep and avoid "File name too long"?
Problem
Eclipse created a temp folder in one of the directories which is nested quite deep, e.g. I am unable to delete this folder in Windows via Explorer, the or commands, nor the Cygwin 'rm' command. How should I remove this very long folder? It just keeps saying "File name too long..."
Error Output
dir1\dir1\dir1\dir1\...
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Fix for: How do I delete a folder which is nested quite deep and avoid "File name too long"?
If you are like me and don't like to install additional software to fix a problem like this, I'd go with XQYZ's suggestion and use to solve the problem. (In my case the problem was created by robocopy in the first place, by copying a directory which had recursive junction points in it without supplying /XJ to robocopy). To delete the directory tree starting at c:\subdir\more\offending_dir: The total step-by-step-process is as simple as this: to cd into its parent directory. to create an empty d…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix