How to Unlink OneDrive and Delete Files from a Former School Account
Question details
The user is unable to unlink OneDrive or delete local files associated with a former, now-deleted school account on an old laptop.

- Product
- OneDrive
- Device & OS
- Windows
- Scenario
- Trying to clean up an old laptop by unlinking a deleted school account and removing the leftover synced files.
- Observed behavior
- OneDrive remains linked to the defunct account, preventing the user from using standard unlink options and locking local files from being deleted.
Ensure you have copied any personal files still trapped in the old OneDrive folder to a separate local drive or external USB before attempting to force-remove the application.
Uninstall OneDrive and Delete the Local Folder
Since the school account is deleted and you cannot sign in to access standard unlink settings, uninstalling the OneDrive application entirely is the most effective way to remove its restrictions from your system.
When an account is deleted by an administrator, the local OneDrive app often enters an authentication loop, freezing your ability to unlink the PC normally. Forcing an uninstall removes these background sync processes.
Right-click the OneDrive cloud icon in your Windows system tray (bottom right corner) and select 'Close OneDrive' or 'Quit OneDrive'.
Open your Windows Settings, navigate to 'Apps' > 'Apps & features' (or 'Installed apps'), locate Microsoft OneDrive in the list, and click 'Uninstall'.
Restart your laptop to ensure all background processes and file locks tied to OneDrive and Microsoft 365 are fully terminated.
Open File Explorer, navigate to 'C:\Users\[YourUsername]\', find the folder named after your old school account, and delete it permanently.

Clear Windows Credentials for the School Account
If you plan to reinstall OneDrive for a personal account later, clearing your Windows credentials ensures the old school account data won't automatically attempt to sign back in.
Switch to WPS Office for Hassle-Free Document Management
Dealing with locked cloud accounts and frustrating sync issues in Microsoft Office and OneDrive can disrupt your workflow. Consider switching to WPS Office—a lightweight, powerful alternative that gives you full control over where and how you save your files without forced account syncing.
- 1. Download WPS Office: Visit the official WPS website to download and install the free office suite.
- 2. Open Your Files Directly: Double-click your existing Word, Excel, or PowerPoint files to open them seamlessly in WPS Office.
- 3. Save Locally or to WPS Cloud: Choose exactly where your files go—save them strictly to your local hard drive or opt into WPS Cloud only if you want it.

Frequently Asked Questions
Why can't I just unlink the account directly in OneDrive settings?
To access the 'Unlink this PC' option, OneDrive usually requires you to be signed in. If your school account was deleted by the IT administrator, the app cannot authenticate your credentials, which often causes the settings menu to freeze, blank out, or loop indefinitely.
Will uninstalling OneDrive delete the files stored in other folders?
No. Uninstalling the OneDrive application only stops the syncing process and severs the connection to the cloud. Your files remain safely exactly where they are on your local hard drive until you manually delete them.
How do I fix a 'File in Use' error when trying to delete the old school folder?
This error occurs when background applications (like hidden Microsoft 365 processes, Adobe apps, or File Explorer itself) are still accessing the folder. Restart your computer, ensure OneDrive is completely uninstalled, and attempt to delete the folder immediately after rebooting before opening any other software.




