44

I've installed windows 10 on a new pc, with a secondary hard disk containing my onedrive folder, taken from my old pc. I've configured onedrive in order to use that folder, and it's working fine.

The problem is that when I open Explorer I can see two onedrive icons on the sidebar, both of them pointing at the same folder.

How can I remove the duplicated onedrive entry from the sidebar?

Duplicated OneDrive entry

1

2 Answers 2

63

According to Microsoft Forum Moderator Ruizell Rey:

To resolve your concern regarding duplicated OneDrive entry, follow the steps below:

  1. Search for regedit, and then press Enter.
  2. Open HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\​Explorer\Desktop\NameSpace
  3. Check if you have several folders under NameSpace.
  4. If there are several folders, highlight each folder, and then check the name of the Data on the right hand side.

    OneDrive in Registry Editor

  5. If you see multiple folders with OneDrive as the Data, right click on it, and then select Delete.

    Deleting registry key

Important: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, refer to the following Microsoft Knowledge Base article.

How to back up and restore registry and Creating a system restore point.

5
  • 1
    Why does this happen? It just happened to me, so I completely uninstalled OneDrive. After doing so, the "duplicate" entry was still visible in Explorer even though OD was not installed. Commented May 14, 2018 at 14:03
  • 1
    For me, it was OneDrive and then OneDrive (my work). Sounds like OneDrive is detected in multiple locations or has a distinct name which makes it show twice.
    – Sun
    Commented Sep 16, 2019 at 18:52
  • 2
    Obvious bug that no one seems to have noticed at Microsoft. Not even sure where to report it.
    – Quark Soup
    Commented Nov 1, 2019 at 18:20
  • In case taking a backup of the registry is forgotten, Windows stores a backup copy of the System's registry stores in %WinDir%\System32\config\RegBack (it does not maintain a backup of the user's registry stores located in %UserProfile%)
    – JW0914
    Commented Jan 3, 2020 at 13:04
  • I always have this problem with new installs (Windows 11 this time), with one entry as 'One Drive' and the other 'One Drive <Business Name>'. I found two entries under 'NameSpace' and was easily able to identify and purge the one without the business name using this method.
    – user5024
    Commented Jul 19, 2023 at 10:46
16

I have another solution, since i didn't find the folder ...\Desktop\NameSpace in my registry.

I searched the registry, using the following settings: Search only by Data, text "OneDrive", comparing the whole string. The fourth entry i found was something like this:

HKEY_USERS\[User-ID]\Software\Classes\CLSID\[XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX]

The only thing i had to change was setting System.IsPinnedToNameSpaceTree to 0, then the wrong entry disappeared.

If you try this, make sure you copy the key and store it before you make any changes. You can set the key value to 1 again, if you picked the wrong entry.

2
  • 2
    Not sure if Microsoft did away with the accepted answers regs keys for new versions of Windows 10 but this answer is the solution for me. My Windows version from system properties is "20H2" build 19042.804, fresh install. Also, after changing the reg value you can re-open File Explorer right away to see your changes and to verify the icon is gone.
    – payling
    Commented Mar 5, 2021 at 15:42
  • This worked for me but instead of HKEY_USERS I looked in HKEY_CURRENT_USER\SOFTWARE\Classes\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6} Commented Mar 25, 2022 at 21:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .