How to Remove a Disconnected OneDrive for Business Icon from Desktop
Question details
The user needs to permanently delete a leftover OneDrive for Business shortcut from their desktop after unlinking an old work account.

- Product
- OneDrive for Business
- Device & OS
- Windows
- Scenario
- A user unlinks a former work account from OneDrive, but a residual icon remains stuck on the desktop.
- Observed behavior
- The broken OneDrive icon points to a deleted folder, resists standard right-click deletion, and automatically reappears after the system restarts.
Ensure you are logged in with administrative privileges. Because this process involves modifying the Windows Registry, you must create a System Restore point or back up your registry before proceeding to prevent accidental system corruption.
Remove the Leftover OneDrive Icon Using Registry Editor
Use the Windows Registry Editor to manually unpin the broken OneDrive namespace entry and permanently delete the leftover desktop icon.
When standard deletion methods fail, it means Windows still has the folder pinned in its Namespace tree. Removing the specific registry key breaks this connection and stops the icon from regenerating.
Press the Windows key + R to open the Run dialog box. Type 'regedit' and press Enter. Click 'Yes' if prompted by User Account Control.
In the Registry Editor, navigate to HKEY_CURRENT_USER\Software\Classes\CLSID. Expand the CLSID folder and click through the subfolders to find the one that corresponds to your disconnected OneDrive account.
With the correct folder selected, look at the right pane. Double-click on the 'System.IsPinnedToNameSpaceTree' entry and change its 'Value data' from 1 to 0. Click 'OK'.
Navigate to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace. Find the subkey that matches the CLSID string you identified in the previous steps. Right-click this key and select 'Delete'.
Close the Registry Editor and restart your computer. The disconnected OneDrive for Business icon will no longer appear on your desktop.

Switch to WPS Office for a Cleaner Document Experience
Tired of complicated Microsoft ecosystem setups, un-deletable shortcuts, and syncing errors? WPS Office offers a streamlined, lightweight alternative with built-in cloud management that won't clutter your Windows registry or desktop.

Frequently Asked Questions
Why does the disconnected OneDrive icon keep reappearing after I delete it?
Standard right-click deletion only removes the visual shortcut momentarily. Because the Windows Registry still has the old account pinned to the Desktop Namespace tree, the system automatically rebuilds the icon every time Windows Explorer restarts.
Will editing the registry delete any of my actual OneDrive files?
No. This registry fix only removes the broken visual shortcut from your Windows desktop and File Explorer. Your actual cloud files remain completely safe and untouched in your online OneDrive account.
How do I safely back up my Windows registry before trying this fix?
Open Registry Editor, click 'File' in the top left menu, and select 'Export'. Choose a safe location to save the backup file, ensure the 'Export range' at the bottom is set to 'All', and click 'Save'.




