logo
search
OneDrive File Issues

How to Unlink OneDrive and Delete Files from a Former School Account

WPS EditorWPS Editor Sep 27, 2026 868 views

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.

How to Unlink OneDrive and Delete Files from a Former School Account
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.
Before you start

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.

Solution 1Recommended

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.

1
Quit OneDrive

Right-click the OneDrive cloud icon in your Windows system tray (bottom right corner) and select 'Close OneDrive' or 'Quit OneDrive'.

2
Uninstall the Application

Open your Windows Settings, navigate to 'Apps' > 'Apps & features' (or 'Installed apps'), locate Microsoft OneDrive in the list, and click 'Uninstall'.

3
Restart Your Device

Restart your laptop to ensure all background processes and file locks tied to OneDrive and Microsoft 365 are fully terminated.

4
Delete the Local Folder

Open File Explorer, navigate to 'C:\Users\[YourUsername]\', find the folder named after your old school account, and delete it permanently.

Uninstall OneDrive and Delete the Local Folder
File in Use Errors: If Windows states the files are in use during deletion, ensure no other Microsoft Office or Adobe applications are running in the background, or try deleting the folder in Windows Safe Mode.
Free Microsoft Office alternative

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. 1. Download WPS Office: Visit the official WPS website to download and install the free office suite.
  2. 2. Open Your Files Directly: Double-click your existing Word, Excel, or PowerPoint files to open them seamlessly in WPS Office.
  3. 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.
Completely free, lightweight, and fast to install on older laptops.High compatibility with all Microsoft Office formats (.docx, .xlsx, .pptx).Save documents purely locally without mandatory cloud account linking.Avoid school or workplace account lock-out issues after graduation or job changes.
microsoft office alternative - wps office

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.