OneDrive File Issues

How to Remove a Deleted OneDrive Business Account Icon from Desktop

Phi Hung VoPhi Hung Vo Nov 3, 2026 868 views

Question details

The user wants to remove an unwanted desktop icon left behind by a deleted or unlinked OneDrive for Business account.

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

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.

Solution 1Recommended

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.

1
Open Registry Editor

Press the Windows Key + R to open the Run dialog. Type 'regedit' and press Enter to launch the Registry Editor.

2
Locate the account GUID in NameSpace

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.

3
Copy the GUID

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.

4
Navigate to HideDesktopIcons

Now navigate to this path: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel.

5
Create a new DWORD value

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.

6
Set value data to 1

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.

Hide the Ghost Icon via Registry Editor
Targeting the Right Account: Ensure you are copying the GUID belonging to the deleted business account. Modifying the wrong GUID might hide your personal OneDrive or other system icons instead.
Free Microsoft Office alternative

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.

Fully compatible with Microsoft Word (.docx), Excel (.xlsx), and PowerPoint (.pptx) formats.Built-in WPS Cloud storage offers secure, hassle-free document syncing that won't clutter your desktop.All-in-one workspace allows you to open documents, spreadsheets, and presentations in a single tabbed window.Lightweight installation uses minimal system resources and runs exceptionally smooth on older devices.
microsoft office alternative - wps office

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.