OneDrive File Issues

Remove a Closed OneDrive Work Account and Folder from Windows

Khadija KhanKhadija Khan Nov 14, 2026 868 views

Question details

Remove a closed work account from OneDrive and clear its leftover sync folder from Windows.

Remove a Closed OneDrive Work Account and Its 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.
Before you start

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.

Solution 1Recommended

Unlink the Closed Work Account from OneDrive

Disconnect the old account first to stop OneDrive from trying to sync it.

1
Open OneDrive settings

Select the OneDrive cloud icon in the Windows taskbar notification area. Select the gear icon, then choose Settings.

2
Find the work account

Open the Account tab and locate the closed work or school account. Check its name before making changes.

3
Unlink the account

Under the unwanted account, select Unlink this PC and confirm. If the account is no longer listed, continue to the folder removal steps.

Unlink the Closed Work Account from OneDrive
Check other work connections: If Windows itself still prompts for the account, check Settings > Accounts > Access work or school. Disconnecting an account there can affect other organization-managed apps and settings, so consult IT if needed.
Free Microsoft Office alternative

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.

Open and edit Microsoft Word, Excel, and PowerPoint formats, including DOCX, XLSX, and PPTX.Continue working with local Office files you kept from the former OneDrive folder.Use a familiar interface for documents, spreadsheets, and presentations.Get a free, lightweight office suite for everyday work.
microsoft office alternative - wps office

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.