How to Fix the "Destination Path Too Long" Error in Windows

Published on June 23, 2026

Why Does This Error Happen?

Windows historically limits file paths (the folder names plus the file name) to 260 characters. If you try to copy, move, or delete a file nested deep within multiple subfolders, and the total character count exceeds this limit, Windows blocks you with the "Destination Path Too Long" error. Here is how to bypass it in minutes.

Method 1: The Quickest Fix (Rename Parent Folders)

If you only need to access or move a few files, the easiest workaround is to temporarily shorten the names of the folders containing them.

  • Navigate to the top-level folder of the path.
  • Right-click the folder, select Rename, and change it to a single letter (e.g., "A").
  • Move down to the next subfolder and rename it to a single letter as well (e.g., "B").
  • Once the overall path length drops below 260 characters, perform your file operation (copy, move, or delete).
  • Rename the folders back to their original names once the task is complete.

Method 2: Use Robocopy (Best for Deleting Uncooperative Folders)

If Windows won't let you delete a deeply nested folder structure, you can bypass the user interface entirely using Robocopy, a powerful command-line tool built into Windows.

  • Create a temporary empty folder on your C: drive and name it "Empty" (e.g., C:\Empty).
  • Open the Start menu, type cmd, right-click Command Prompt, and select Run as administrator.
  • Type the following command, replacing the second path with the path to the folder you want to delete:
    robocopy C:\Empty "C:\Path\To\Your\Problem\Folder" /s /mir
  • Press Enter. This command mirrors the empty folder into the target folder, instantly deleting all the long-path files inside it.
  • You can now easily delete the main problem folder and the temporary "Empty" folder.

Method 3: The Permanent Fix (Enable Long Paths in Registry)

If you are running Windows 10 or 11, you can permanently disable the 260-character limit so you never see this error again.

  • Press Windows Key + R, type regedit, and press Enter to open the Registry Editor.
  • Navigate to the following key in the left sidebar:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem
  • In the right pane, locate the value named LongPathsEnabled.
  • Double-click LongPathsEnabled and change its Value Data from 0 to 1.
  • Click OK, close the Registry Editor, and restart your computer for the changes to take effect.
← Explore more solutions