Question Locked

How to fix Can't Delete Folder, "Destination Path Too Long" Error?

0 helpful
22 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I've seen other similar posts, but none of them provides an actual solution that has worked for this ridiculous problem I'm having. I'm simply trying to delete a folder from my backup drive in Windows 7, but Windows shows the error, "Destination Path Too Long: The file name(s) would be too long for the destination folder. You can shorten the file name and try again, or try a location that has a shorter path."

Then, after I "Skip" this item, I get another similar error, but this time it says, "Source Path Too Long: The source file name(s) are larger than is supported by the file system. Try moving to a location which has a shorter path name, or try renaming to shorter name(s) before attempting this operation. "

So, I deleted all sub folders and files in an attempt to work around this problem. There is one folder, that is actually completely empty, that refuses to be deleted. I moved this folder to the root of my drive, I even tried renaming it, but it never gets deleted.

Seriously, I just want to delete this folder. I've tried third-party utilities, checked the disk for errors, tried deleting the folder from the command line, and nothing has been able to delete this folder. It seems like a cutting-edge operating system should be able to handle a simple delete operation without so much trouble.

Appreciate your feedback!

22 replies

by armando17

Hm, I wouldn't expect to see many copies of folders with the same name... I think I'd do a CHKDSK D: next and see whether there's any file system corruption there. Furthermore, for such problems like can't open or rename file (name is too long prompt), I use Long Path Tool and it works.

by newminionphowz

Could be that the robocopy script causes the recursion in the target directory tree because of junction points in the source. I'm pretty sure the windows \User directory tree has junctions that could create this situation. You may wish to try adding the "/XJ" option to the robocopy command so that it doesn't follow junctions.

by lecore99

I too had these kind of issue and I was totally fed up, it was like some virus or trojan in my computer which I can't even delete.
After searching a lot on the internet I found a fix to this. Currently I am using GS Richcopy 360. This software will surely help you to transfer, delete or do anything with your files. I has helped me a lot. You can try this, helped me a lot though!

by peskstudiosinc

...that you can implement without third party tools.
STEP 1:
a. Open File Explorer and navigate far into the folder structure.
b. Copy the location by holding SHIFT while right-clicking into a white space.
c. Select "Copy as path"
d. Open cmd.exe as administrator.
e. Type the following commands, hitting Enter after each;
cd\
cd " {Right-click your mouse} " :The path should appear here.
subst j: . :Note the fullstop after the colon and space.
f. Open J: drive in File Explorer and navigate to the file that needs deletion and
delete as normal.
g. Using this methods also allows you to delete entire folders.

STEP 2:
a. Perform the steps listed above. Stop at e.
e. Type the following commands, hitting Enter after each;
cd\
cd " {Right-click your mouse} " :The path should appear here.
dir /X :You should see the short file names.
Delete the files using these names.

by getum

For "Destination Path Too Long" Error , I recommend a LongPathTool.

by carl ediker

Hi

In addition to the solution suggested below you can rename some of the folder names to single letters, its painful but with the helpful suggestion below and renaming you should be able to delete anything that isn't corrupted.

Thanks

Carl Ediker

..that you can implement without third party tools.
STEP 1:
a. Open File Explorer and navigate far into the folder structure.
b. Copy the location by holding SHIFT while right-clicking into a white space.
c. Select "Copy as path"
d. Open cmd.exe as administrator.
e. Type the following commands, hitting Enter after each;
cd\
cd " {Right-click your mouse} " :The path should appear here.
subst j: . :Note the fullstop after the colon and space.
f. Open J: drive in File Explorer and navigate to the file that needs deletion and
delete as normal.
g. Using this methods also allows you to delete entire folders.

STEP 2:
a. Perform the steps listed above. Stop at e.
e. Type the following commands, hitting Enter after each;
cd\
cd " {Right-click your mouse} " :The path should appear here.
dir /X :You should see the short file names.
Delete the files using these names.

by ankit998

There is a limit of path name in windows which is 250 characters. More than that is not allowed, so make sure your file name is not too big. If you want to overcome this error you can try GS Richcopy 360. I used it also to solve this problem. This software provides support for long path name and many other interesting features too. Give it a try, cheers!

by sanchezhillery

Try using long path tool for this. I encounter the same problem but this tool helped me . :)

by garry brown

You can resolve this issue easily by using LongPathTool software.

by hulst

If this is a single folder, you can change (shorten) the name, using Total Commander.

by andrew thiel

You Can use LONG PATH TOOL for solve this problem.It is great.

by garry brown

If File Path is too long then I would like to suggest you, try Long Path Tool program to resolve this issue.

by georgeeerenee

I use GS RichCopy360. It supports long file names and also can copy locked/open files with ease. Though it's not cheap, it is a great tool for copying files from one machine to another or to different directives on the same machine..

by steeevveeeelathom

I use GS RichCopy360. It supports long file names and also can copy locked/open files with ease. Though it's not cheap, it is a great tool for copying files from one machine to another or to different directives on the same machine.

by ross gram

I have faced this problem once upon a time but when knowing about the LongPathTool program, at that time I am using this tools and all problem solve. so my personal suggestion you can use the LongPathTool program.

by garrygahan12

Hi claytonclayton,
For your problem, you can try LongPathTool.

This discussion is closed to new replies.