Remove a Closed OneDrive Work Account and Folder from Windows
Question details
Remove a closed work account from OneDrive and clear its leftover sync folder from Windows.

- Product
- Microsoft OneDrive for work or school
- Device & OS
- Windows (version not provided)
- Scenario
- A former work account has been deleted, but its OneDrive connection and folder remain on the computer.
- Observed behavior
- OneDrive repeatedly prompts for sign-in, and the associated sync folder cannot be deleted.
Identify the OneDrive folder and account belonging to the former employer, and check whether the folder contains files you still need. If the computer is managed by an organization, ask its IT administrator before disconnecting a work account.
Unlink the Closed Work Account from OneDrive
Disconnect the old account first to stop OneDrive from trying to sync it.
Select the OneDrive cloud icon in the Windows taskbar notification area. Select the gear icon, then choose Settings.
Open the Account tab and locate the closed work or school account. Check its name before making changes.
Under the unwanted account, select Unlink this PC and confirm. If the account is no longer listed, continue to the folder removal steps.

Delete the Leftover OneDrive Work Folder
Remove the local folder after the old account has been unlinked.
Remove a Confirmed Stale OneDrive Entry from File Explorer
Check the registry only if the unwanted folder entry remains in File Explorer after unlinking and deleting the local folder.
Work with Office Files in WPS Office
WPS Office is a free, lightweight alternative for working with documents, spreadsheets, and presentations. Its familiar interface and Microsoft Office format support make it easy to move existing files into your workflow. It does not remove OneDrive accounts or folders.

Frequently Asked Questions
Will unlinking OneDrive delete the files in the folder?
Unlinking stops the account from syncing but does not itself delete the local folder. Check the folder in File Explorer before deciding whether to delete it.
Why does the old account still prompt me to sign in?
The account may still be connected in OneDrive or Windows. Check OneDrive Settings > Account first, then check Windows Settings > Accounts > Access work or school if prompts continue.
What if I cannot find the old account in OneDrive settings?
If it is not listed under OneDrive Settings > Account, quit OneDrive and check C:\Users\<your user name> for the leftover folder. Confirm its contents before deleting it.
Should I delete a registry entry if its name is unfamiliar?
No. In Registry Editor, export the NameSpace key first and delete a subkey only if you can positively identify it as the unwanted OneDrive entry.




