Windows 10 File Name Too Long to Delete: Removing Files With Oversized Paths
You try to delete a folder and Windows says the file name is too long, or that the source path is too long. Windows 10 file name too long to delete leaves behind folders that judolbet88 refuse to go.
Windows has traditionally limited the full path of a file, including every folder name leading to it, to 260 characters. Deeply nested folders, or files extracted from archives, can exceed that.
The file exists and takes up space, but File Explorer cannot handle it. Shortening the path is the simplest way out.
Possible Causes
Paths become too long in these situations:
- Folders are nested many levels deep with long names.
- An archive was extracted into a folder that already had a long path.
- Files were copied from a system or program that allows longer paths.
- Sync or backup software created duplicated folder structures.
Software development folders and old backups are frequent sources.
Quick Fixes to Try First
Shorten the path.
- Rename the top-level folders to something very short, such as a single letter.
- Work down the tree, renaming each long folder name to one or two characters.
- Once the total path is under the limit, delete the folder normally.
- Alternatively, move the deepest folder you can reach to the root of the drive, such as C:\, and delete it from there.
- Empty the Recycle Bin, or use Shift + Delete to skip it.
Renaming parent folders shortens the path for everything inside them in one go.
Advanced Steps for Stubborn Cases
Use tools that handle long paths.
- Open Command Prompt as administrator.
- Create an empty folder, for example with mkdir C:\empty.
- Run robocopy C:\empty “C:\path\to\long folder” /mir, replacing the second path with the stubborn folder. This mirrors the empty folder onto it and removes the contents.
- Delete both folders afterwards with rd /s /q.
- A free archive manager such as 7-Zip also includes a file browser that can delete long-path items directly.
On Windows 10 Pro, long path support can be enabled through Group Policy under Computer Configuration > Administrative Templates > System > Filesystem, although File Explorer itself still has limitations.
A Word of Caution
The robocopy mirror command deletes everything in the target folder, so check the path three times before pressing Enter. Do not point it at a drive root or a folder containing data you need. Back up anything important first.
Conclusion
A file that is “too long to delete” is trapped behind a path limit. Renaming or moving parent folders usually frees it, and robocopy or an archive manager removes what File Explorer cannot.