logo
search
OneDrive File Issues

How to Delete an Old School OneDrive Folder That Is in Use

Maira MehtabMaira Mehtab Oct 8, 2026 870 views

Question details

The user needs to delete a local OneDrive folder associated with an inaccessible school account but is blocked by a Windows file lock error.

How to Delete an Old School OneDrive Folder That Is in Use
Product
Microsoft OneDrive
Device & OS
Windows
Scenario
Trying to clean up storage by removing local files and folders from an old, inactive school OneDrive account.
Observed behavior
Windows prevents the deletion of the folder, displaying an error message stating that the folder is currently in use by another program.
Before you start

Ensure you have closed all Microsoft Office applications and that you do not have any files from the old school folder open in the background.

Solution 1Recommended

Unlink the Account and Quit OneDrive

This solution stops the active synchronization processes that are holding the folder hostage and causing the 'in use' error.

The most common reason a OneDrive folder cannot be deleted is that the OneDrive sync client is actively running in the background, trying to communicate with the inactive school account.

1
Sign out of Office applications

Open any Microsoft Office app like Word or Excel. Go to File > Account, locate your old school account under User Information, and click 'Sign out'.

2
Unlink your PC from OneDrive

Click the OneDrive cloud icon in your Windows taskbar. Click the gear icon (Help & Settings) and select Settings. Go to the Account tab and click 'Unlink this PC'.

3
Quit the OneDrive client

Right-click the OneDrive cloud icon in the taskbar again and select 'Quit OneDrive' or 'Close OneDrive' to completely stop the background process.

4
Delete the folder

Navigate to the location of the old school OneDrive folder in Windows File Explorer, right-click the folder, and select 'Delete'.

Unlink the Account and Quit OneDrive
Reconfigure OneDrive: Once the old folder is deleted, you can reopen OneDrive from the Start menu to sign in and sync with your current active account.
Free Microsoft Office alternative

Manage Documents Locally and Securely with WPS Office

Tired of dealing with stubborn background syncing issues and locked folders? WPS Office is a lightweight, all-in-one productivity suite that lets you manage your Word, Excel, and PowerPoint files without intrusive background processes holding your folders hostage. It's fully compatible with Microsoft formats and offers a smoother, faster local editing experience.

  1. 1. Download the software: Get WPS Office for free from the official website and run the lightweight installer.
  2. 2. Open Microsoft formats directly: Launch WPS Office and open your existing Word, Excel, and PowerPoint files seamlessly without converting them.
  3. 3. Save securely: Edit and save your files locally without forced background syncing, or choose to back them up securely with WPS Cloud.
Lightweight design prevents background processes from locking your local folders.Fully compatible with Microsoft Office file formats, including DOCX, XLSX, and PPTX.Built-in WPS Cloud offers hassle-free, optional document syncing.All-in-one tabbed interface for managing documents, spreadsheets, and presentations efficiently.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Windows say the OneDrive folder is in use when no files are open?

Windows displays this error because the OneDrive sync client or a Microsoft Office background service is actively monitoring or attempting to sync the folder, effectively locking it even if no visible document windows are open.

Can I delete a OneDrive folder without completely uninstalling the OneDrive app?

Yes. In most cases, you do not need to uninstall OneDrive. Simply unlinking your account in the OneDrive settings and quitting the application from the system tray is enough to release the file lock so you can delete the folder.

How do I completely remove an old school account from my Windows PC?

To remove the credentials and policies of an old school account, go to Windows Settings > Accounts > Access work or school. Click on the old account and select 'Disconnect'.