logo
search
OneDrive File Issues

How to Remove the Wrong OneDrive Account from File Explorer

Bushra ParveenBushra Parveen Sep 30, 2026 869 views

Question details

The user needs to remove an old, unauthorized, or former employee's personal OneDrive navigation shortcut from File Explorer to cleanly add a new business OneDrive account.

How to Remove the Wrong OneDrive Account from File Explorer
Product
Microsoft OneDrive
Device & OS
Windows
Scenario
A former employee's personal OneDrive account shortcut continues to display in the File Explorer navigation pane even after Microsoft 365 has been removed from the system.
Observed behavior
The old OneDrive navigation shortcut persists in Windows File Explorer, causing confusion and preventing the proper visual integration of the correct business OneDrive account.
Before you start

Ensure you are logged into Windows with an Administrator account, and strongly consider creating a System Restore point or backing up your registry before making changes to system files.

Solution 1Recommended

Delete Local OneDrive Folders and Remove Registry Keys

By manually clearing the old user folders and deleting the specific registry key associated with the personal OneDrive, you can forcefully remove the ghost shortcut from File Explorer.

When Microsoft 365 is uninstalled, it often leaves behind cached registry entries and local user profile folders. To completely remove the shortcut, you must clear both the local files and the residual registry configuration.

1
Remove the lingering local folder

Open File Explorer and navigate to C:\Users\<username>. Look for a OneDrive folder belonging to the former employee or the personal account. If it exists and is no longer needed, right-click and delete it.

2
Open Registry Editor

Press the Win + R keys simultaneously to open the Run dialog. Type 'regedit' and press Enter. Click 'Yes' if prompted by User Account Control.

3
Navigate to the NameSpace key

In the Registry Editor address bar or sidebar, navigate to the following path: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace.

4
Delete the OneDrive Personal subkey

Click through each subkey (folder) under NameSpace. Look at the 'Data' column on the right panel. Find the one that says 'OneDrive - Personal', right-click the folder in the left pane, and select Delete.

5
Restart and sign in

Restart your Windows computer. The old shortcut will be gone. Finally, launch your OneDrive app and sign in with your business credentials to enable the correct File Explorer integration.

Delete Local OneDrive Folders and Remove Registry Keys
Registry Backup Warning: Always back up the registry before deleting keys. To do this, click 'File' > 'Export' in the Registry Editor while the NameSpace folder is selected, and save the backup file to your desktop.
Free Microsoft Office alternative

Manage Files Seamlessly Without System Sync Issues in WPS Office

If managing Windows system registries and Microsoft 365 cloud syncing issues is slowing you down, switch to WPS Office. It provides a lightweight, independent environment where you can connect your business or personal cloud drives directly within the app, bypassing complex Windows File Explorer integrations.

  1. 1. Download and Install WPS Office: Get the free WPS Office suite from the official website and install it on your PC.
  2. 2. Open Cloud Storage Integration: Launch WPS Office, click on 'Open' in the left sidebar, and select 'Add Cloud Storage'.
  3. 3. Connect Your Business OneDrive: Choose OneDrive from the list, log in securely with your new business credentials, and access all your files without relying on File Explorer shortcuts.
Connect seamlessly to OneDrive, Google Drive, and Dropbox from directly within the app100% compatible with Microsoft Office formats (.docx, .xlsx, .pptx)Free, lightweight alternative that doesn't bloat your system registryFamiliar, tabbed user interface for easy document management
microsoft office alternative - wps office

Frequently Asked Questions

Why does the OneDrive shortcut remain after uninstalling Microsoft 365?

Uninstalling the Microsoft 365 suite does not automatically wipe the Windows registry keys or the local profile folders associated with OneDrive. This leaves a 'ghost' shortcut pinned to the File Explorer navigation pane.

Can I remove the wrong OneDrive account without editing the registry?

If you still have access to the account, you can simply click the OneDrive cloud icon in your system tray, go to Settings, and click 'Unlink this PC'. However, if the account was already removed or disabled, registry editing is usually required.

How do I add my new business OneDrive account to File Explorer?

Once the old shortcut is cleared, download and open the OneDrive desktop app. Sign in using your current business email and password. Follow the setup wizard, and Windows will automatically integrate the correct business OneDrive shortcut into File Explorer.

What should I do if the old OneDrive folder cannot be deleted?

If Windows says the folder is in use, open Task Manager (Ctrl + Shift + Esc) and end any running 'Microsoft OneDrive' processes. Alternatively, you may need to take ownership of the folder via its Security properties before deleting it.