OneDrive File Issues

How to Remove a Disconnected OneDrive for Business Icon from Desktop

Algirdas JasaitisAlgirdas Jasaitis Nov 3, 2026 868 views

Question details

The user needs to permanently delete a leftover OneDrive for Business shortcut from their desktop after unlinking an old work account.

How to Remove a Disconnected OneDrive for Business Icon from the Desktop
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.
Before you start

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.

Solution 1Recommended

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.

1
Open the Registry Editor

Press the Windows key + R to open the Run dialog box. Type 'regedit' and press Enter. Click 'Yes' if prompted by User Account Control.

2
Locate the CLSID Key

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.

3
Disable the Namespace Pin

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'.

4
Delete the Desktop Namespace Entry

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'.

5
Restart Windows

Close the Registry Editor and restart your computer. The disconnected OneDrive for Business icon will no longer appear on your desktop.

Remove the Leftover OneDrive Icon Using Registry Editor
Registry Caution: Modifying the registry incorrectly can cause serious system issues. Make sure you are only deleting the specific keys associated with the broken OneDrive account.
Free Microsoft Office alternative

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.

Lightweight installation that keeps your Windows desktop and registry clean.Fully compatible with Microsoft Office formats including .docx, .xlsx, and .pptx.Seamless built-in WPS Cloud storage prevents complicated third-party syncing issues.Familiar tabbed interface allows for easy document management without a steep learning curve.
microsoft office alternative - wps office

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'.