How to Remove a Deleted OneDrive Business Account Icon from Desktop
Question details
The user wants to remove an unwanted desktop icon left behind by a deleted or unlinked OneDrive for Business account.

- Product
- OneDrive for Business
- Device & OS
- Windows 10
- Scenario
- Cleaning up residual desktop icons and system namespaces after a corporate cloud storage account has been removed.
- Observed behavior
- A persistent ghost icon for a deleted OneDrive for Business account remains on the Windows desktop even after the account is unlinked and removed from File Explorer.
Since this solution requires modifying the Windows Registry, it is highly recommended to create a backup of your registry or set a System Restore point before proceeding.
Hide the Ghost Icon via Registry Editor
Safely modify registry keys to hide the specific deleted account's desktop icon without affecting your active personal OneDrive.
When an account is unlinked or deleted, Windows sometimes fails to clean up the associated namespace entry. Adding a specific DWORD value to the HideDesktopIcons registry key forces Windows to hide it.
Press the Windows Key + R to open the Run dialog. Type 'regedit' and press Enter to launch the Registry Editor.
Navigate to the following path: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace. Click through the folders (which look like strings of letters and numbers) until you see your former business account name in the 'Default' data column on the right.
Right-click the folder name on the left pane (the GUID associated with your business account) and select 'Copy Key Name', or carefully write it down.
Now navigate to this path: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel.
Right-click in the empty space on the right pane, select 'New' > 'DWORD (32-bit) Value'. Paste or type the exact GUID you copied in step 3 as the name of this new value.
Double-click the newly created DWORD value, change its 'Value data' from 0 to 1, and click OK. Finally, go to your desktop and press F5 to refresh. The unwanted icon should now be gone.

Unlink the Account from OneDrive Settings
If the business account icon still appears in the taskbar or File Explorer, the account may not have been fully unlinked from your PC.
Manage Your Documents Seamlessly with WPS Office
If you are transitioning away from a corporate Office environment and need a reliable, lightweight suite for your personal files, consider WPS Office. It provides robust document management without complex cloud or desktop integration issues.

Frequently Asked Questions
Why did deleting the OneDrive folder not remove the desktop icon?
Windows Explorer handles special system icons (like OneDrive and This PC) using registry namespace keys rather than standard shortcut files. Deleting the local folder does not automatically remove the registry entry telling Windows to display the icon.
Will modifying the registry affect my personal OneDrive?
No. By creating a DWORD value using only the specific GUID assigned to the deleted business account, your personal OneDrive account (which uses a different GUID) will remain visible and unaffected.
What if the ghost icon comes back after restarting Windows?
If the icon returns, ensure that the DWORD value in the 'NewStartPanel' registry key is still set to '1'. Additionally, make sure the business account is fully unlinked in the OneDrive taskbar settings, as the client might try to recreate the registry key if it still thinks the account is active.




