Cannot Delete files and folders - Source Path Too Long RRS feed

  • Question

  • I have seen a number of posts regarding this problem. I have tried CMDs erase, del, RD, File Shredder, cut and paste to a root folder, "file shredder" (that tries to install a number of junk programs), and "Long Path File Tool" that wants me to buy it to try. I can move the folders but never can delete the files. I get this more often on a USB drive than my hard drives.

    Seriously, Microsoft needs to come up with a tool to handle this. So far, the only fix is to format the USB drive.

    See the error message below.

    Error: Source path too long

    Friday, April 10, 2015 4:33 PM


All replies

  • Hi Gregger,

    did you ever try this: https://gallery.technet.microsoft.com/Delimon-Win32-Explorer-V40-bc957ab4  ?

    Please let me know if you were able to remove your file using it.


    • Proposed as answer by Roger Lu Monday, April 13, 2015 7:08 AM
    • Marked as answer by Yolanda Zhu Monday, April 20, 2015 9:19 AM
    Friday, April 10, 2015 5:20 PM
  • Here's another solution:

    Robocopy /MIR with an empty folder as a source:

    Monday, August 3, 2015 6:28 PM
  • Hi,

    today chances are that Powershell with PSALphaFS comes up to be the best solution.

    Use can install it like that: 

    install-module psalphafs

    when done you have a cmdlet "remove-longitem", so you can easily run

    remove-longitem c:\your\path\whatever


    Saturday, May 6, 2017 1:37 PM
  • I would suggest to try "Long Path Tool" program.
    Wednesday, August 23, 2017 11:52 AM
  • Wow Amazing! Try Long Path Tool!


    -did work fast

    -deleted thousands of my long path files

    -tested on different platforms, worked everywhere


    Amazing program


    Long Path Tool rocks! Recommended!

    Thursday, June 14, 2018 1:37 PM
  • Try  "LongPathTool program" that is best solution.
    Thursday, December 26, 2019 6:03 AM
  • Have you tried 'long path tool'?
    it's very helpful for me.
    Sunday, March 15, 2020 4:39 AM
  • I would suggest to use LongPathTool program. It resolves problem regarding source path too long.
    Saturday, April 11, 2020 4:55 PM
  • Try using LongPathTool. It always helps me to solve similar issues. Thank you.
    Saturday, May 9, 2020 7:34 PM
  • If you cannot delete a folder then it might be because of long path file or long filename. You can easily solve it by using LongPathTool. Thank you.
    Friday, May 29, 2020 7:15 PM
  • I can recommend you the tool that I use, to resolve similar issues is LongPathTool.
    Sunday, July 19, 2020 11:58 AM
  • Hello Gregger404,

    The Windows NTFS file name, including the path, cannot exceed 255 characters. If you need to copy or move them, use robocopy. If you need to delete, shorten the name/path below the threshold and then you can delete.

    Miguel Fra
    Falcon IT Services


    Sunday, July 19, 2020 5:25 PM