{"slug":"remove-duplicate-onedrive-windows-11","locale":"en","isFallback":false,"translationAvailable":["en","id"],"translationUrls":{"en":"/api/posts/remove-duplicate-onedrive-windows-11?locale=en","id":"/api/posts/remove-duplicate-onedrive-windows-11?locale=id"},"title":"How to Remove Duplicate OneDrive Folders in Windows 11","description":"Fix duplicate OneDrive folders stuck in Windows 11 File Explorer navigation pane using a safe registry edit, common on LTSC and debloated installs.","date":"2026-03-11","updated":"2026-03-19","tags":["windows","windows-11","tutorial","onedrive","troubleshooting"],"category":"Windows","content":"\nI recently decided to perform a clean installation of Windows 11 LTSC edition. If you are not familiar, LTSC is a lightweight version of Windows that strips away most of the bloatware, including Microsoft's built-in apps like OneDrive. It is great for performance, but strangely, once I reached the desktop, I found two \"ghost\" OneDrive folders hanging out in my File Explorer navigation pane.\n\nThese folders were essentially useless. They couldn't be deleted through the UI, and clicking them did absolutely nothing. It is a small detail, but for someone who likes a clean workspace, it was incredibly annoying. After trying standard fixes like unlinking an account (which wasn't even there), I found the solution hidden deep within the Windows Registry.\n\n<Callout variant=\"warning\" title=\"Critical Warning: Backup Your Registry\">\n  This method involves editing the Windows Registry. Errors here can cause serious system issues. Proceed at your own risk, and I highly recommend [backing up your registry](https://support.microsoft.com/en-us/topic/how-to-back-up-and-restore-the-registry-in-windows-855140ad-e318-2a13-2829-d428a2ab0692) before starting.\n</Callout>\n\n## Why This Happens (Quick Context)\n\nIn LTSC or custom debloated installs, OneDrive app components may be removed but some Explorer registration keys can remain. File Explorer reads those registration keys (CLSID/NameSpace), then still renders a OneDrive node even though the app endpoint is gone.\n\nThat is why you see a folder in the sidebar that does nothing when clicked.\n\n## Safe Registry Backup (Do This First)\n\nBefore changing anything:\n\n<Steps>\n  <Step>\n    **Create a System Restore Point**\n    Open Start, search for **Create a restore point**, then create one with a clear label.\n  </Step>\n\n  <Step>\n    **Export only the key you are about to edit**\n    In Registry Editor, right-click the target key and choose **Export**.\n  </Step>\n\n  <Step>\n    **Store backup `.reg` files in a dedicated folder**\n    Keep one folder per fix session so rollback is fast and unambiguous.\n  </Step>\n</Steps>\n\n## Part 1: Removing Folder Entries from the NameSpace\n\nThe first step is to clean up the 'keys' that tell File Explorer to display these folders in the sidebar.\n\n<Steps>\n  <Step>\n    ### Open Registry Editor\n    Press <kbd>Win</kbd> + <kbd>R</kbd>, type `regedit`, and press <kbd>Enter</kbd>.\n  </Step>\n\n  <Step>\n    ### Navigate to NameSpace\n    Copy and paste the following address into the top bar and press <kbd>Enter</kbd>:\n    \n    `Computer\\HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Desktop\\NameSpace`\n\n    ![Navigate to the NameSpace path in the Registry Editor](/images/_posts/windows11/onedrive-duplicate/onedrive-2.webp)\n    *Double-check you are in the HKEY_CURRENT_USER hive.*\n  </Step>\n\n  <Step>\n    ### Identify and Delete OneDrive Keys\n    Under the `NameSpace` folder in the left pane, you'll see several folders with long alphanumeric names (CLSIDs). Click each one and check the **Data** column in the right pane.\n    \n    Look for entries that mention **\"OneDrive\"**. Once found, **right-click** that folder in the left pane and select **Delete**. Repeat this for any duplicate OneDrive entries you find.\n\n    ![Delete the registry key folder related to OneDrive](/images/_posts/windows11/onedrive-duplicate/onedrive-3.webp)\n    *Removing the CLSID folder associated with OneDrive.*\n  </Step>\n</Steps>\n\nClose the Registry Editor and reopen File Explorer. In many cases, those duplicate folders will vanish immediately.\n\n## Part 2: Eliminating the Stubborn \"OneDrive - Personal\" Folder\n\nIf \"OneDrive - Personal\" still reappears or refuses to go away after a restart, we need to adjust one specific stubborn key.\n\nThis second step works because `System.IsPinnedToNameSpaceTree` controls whether that shell folder is pinned in Explorer navigation.\n\n<Steps>\n  <Step>\n    ### Locate the Specific CLSID\n    Back in Registry Editor, navigate to this exact path:\n    \n    `Computer\\HKEY_CLASSES_ROOT\\CLSID\\{018D5C66-4533-4307-9B53-224DE2ED1FE6}`\n  </Step>\n\n  <Step>\n    ### Change Pinning Status\n    In the right-hand pane, find the entry named `System.IsPinnedToNameSpaceTree`. **Double-click** it and change the **Value data** from `1` to `0`. Click **OK**.\n\n    ![Changing the pinning value to 0](/images/_posts/windows11/onedrive-duplicate/onedrive-5.webp)\n    *Setting this to 0 prevents it from being pinned to the sidebar.*\n  </Step>\n</Steps>\n\nYou might need to restart your computer for the changes to take full effect. Once done, your File Explorer should be back to a clean, minimal state.\n\n## Recovery (If Something Looks Wrong)\n\nIf Explorer behaves unexpectedly after edits:\n\n1. Double-click your exported `.reg` backup file to restore the original key.\n2. Restart Explorer from Task Manager or reboot the PC.\n3. If still unstable, use the restore point you created before registry edits.\n\nFor this specific tweak, restoring `System.IsPinnedToNameSpaceTree` back to `1` usually returns the default behavior.\n\n![Clean File Explorer view](/images/_posts/windows11/onedrive-duplicate/onedrive-4.webp)\n*My final File Explorer view, much better without those phantom folders.*\n\nIf you ever want to bring it back, just head back to Part 2 and change the value back to `1`. Hopefully, this helps you reclaim some visual peace in Windows 11!\n\n---\n\n### References\n1. [Microsoft Community - Duplicate entries in file explorer](https://answers.microsoft.com/en-us/windows/forum/all/duplicate-entries-in-file-explorer/3e9d3eec-d3b7-4a66-b482-8a9590e9a748)\n2. [WinPoin - Cara Menghilangkan Folder OneDrive Pada File Explorer](https://winpoin.com/cara-menghilangkan-folder-onedrive-pada-file-explorer-windows-10/)\n"}