How to Remove the Wrong OneDrive Account from File Explorer
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.

- 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.
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.
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.
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.
Press the Win + R keys simultaneously to open the Run dialog. Type 'regedit' and press Enter. Click 'Yes' if prompted by User Account Control.
In the Registry Editor address bar or sidebar, navigate to the following path: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace.
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.
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.

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. Download and Install WPS Office: Get the free WPS Office suite from the official website and install it on your PC.
- 2. Open Cloud Storage Integration: Launch WPS Office, click on 'Open' in the left sidebar, and select 'Add Cloud Storage'.
- 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.

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.




