

Now, delete the file from File Explorer, e.g.Reboot the computer to apply the change.Run this command reg add "HKLM\SYSTEM\CurrentControlSet\Control\FileSystem" /v LongPathsEnabled /t REG_DWORD /d 1.Open the command prompt as Administrator.

Remove files with long path from File Explorer After that you will be able to remove files from File Explorer without issues. The File system itself doesn’t have such a limitation for the path length or file name.Īlso in Windows 10, you can enable native long path support. If it is specified, the API on Windows does not process the path string, but immediately sends it to the file system. The \\? \ prefix is used in the Win32 file namespace. You need to use the prefix \\? \ followed by the full path to the file or folder, including periods or trailing spaces if necessary.


Type a command like this del "\\?\C:\some-long-path.doc".Remove files you cannot delete normally using 7-zipĭelete File When Path Too Long or Name Ends with Dots or Space.Remove files with long path from File Explorer.Delete File When Path Too Long or Name Ends with Dots or Space.This tutorial will show you how to delete a file with a too long path or which contains invalid characters in its name on Windows 10. And since that number is over 260, you run into the Destination path too long issue.Īnother issue is that many apps are unable to work with files that contain characters like a double space or dots at the end of the file name, or just some invalid characters. When you try to copy a file from a location, the calculated destination path is the sum of the characters that exist in the source path and the file name. Windows has a limit on the number of characters that is applied by default to a file path, which is normally 260. Some Windows 10 users experience the “Destination path too long” error when moving or copying files from their original location to another folder or drive. If you’re having trouble deleting a file that Windows thinks is “too long”, there is a very simple solution built right into Windows - no additional applications, hacks, or workarounds are required. How to delete a file with a too long path or its name contains invalid characters.
