logo
search
OneDrive File Issues

How to Fix OneDrive Files Stuck on 'In Use by Another Program'

Amos GikundaAmos Gikunda Oct 13, 2026 870 views

Question details

Users need a way to resume OneDrive synchronization when files become stuck due to being locked by other applications or background processes.

How to Fix OneDrive Files Stuck on 'In Use by Another Program'
Product
OneDrive
Device & OS
not provided
Scenario
Attempting to synchronize local files with the OneDrive cloud, but the process halts because the system believes the files are currently opened by software.
Observed behavior
OneDrive stops syncing and displays a continuous 'In Use by Another Program' message, which often persists even after reinstalling the operating system.
Before you start

Ensure you have saved all your active work in any open documents, as you will need to close all applications and potentially clear temporary system files to release the hidden file locks.

Solution 1Recommended

Restart Systems and Clear Temporary Files

This solution forces background processes to release unreleased file locks and clears remnants of small processes that trigger the 'In Use' error.

The most common reason for this error is an application crashing or failing to release a file lock after you have closed a document. Clearing your temporary files and restarting your services resolves the majority of these hidden locks.

1
Close all applications

Manually save your work and close every open application on your desktop, including Microsoft Office programs and background utilities.

2
Restart the OneDrive client

Right-click the OneDrive cloud icon in your system tray (Taskbar), click on the gear icon or 'Help & Settings', and select 'Quit OneDrive' or 'Close OneDrive'. Wait a few seconds, then reopen it from your Start menu.

3
Clear temporary system files

Press the Windows Key + R to open the Run dialog. Type '%temp%' and press Enter. Select all files in the folder that appears and delete them. Skip any files that prompt an 'in use' warning.

4
Restart your computer

Reboot your PC to fully clear the system's memory of any lingering background processes, then check if OneDrive resumes syncing.

Restart Systems and Clear Temporary Files
Keep OneDrive Updated: Make sure to install the latest OneDrive updates, as Microsoft frequently patches bugs related to incorrect file lock detection.
Free Microsoft Office alternative

Experience Seamless File Management with WPS Office

Tired of dealing with complicated sync errors and locked files in Microsoft Office and OneDrive? Try WPS Office. It is a highly compatible, lightweight, and free alternative that simplifies document creation and cloud management.

  1. 1. Download the installer: Visit the official WPS Office website and click the free download button.
  2. 2. Install the software: Run the downloaded installer and follow the simple on-screen instructions to set up WPS Office on your computer.
  3. 3. Start creating and syncing: Open WPS Office, sign in to activate your free WPS Cloud space, and seamlessly manage your documents without interruptions.
Fully compatible with Microsoft Office formats, including Word, Excel, and PowerPoint files.Built-in lightweight WPS Cloud storage to help you avoid complicated file lock and sync errors.Familiar, tabbed user interface for easy navigation and smooth workflow.Free to download and use across Windows, Mac, Linux, iOS, and Android.
microsoft office alternative - wps office

Frequently Asked Questions

Why does OneDrive say my file is in use when no applications are visibly open?

This happens when a background process, antivirus scan, or a previously crashed application fails to release its 'lock' on the file. The system still believes the file is actively being modified. Clearing your temporary files and restarting your PC typically releases these hidden locks.

Will reinstalling Windows fix the 'In Use by Another Program' OneDrive error?

Not necessarily. Reinstalling Windows is a drastic measure and may not resolve persistent file-lock or account-specific sync problems. It is highly recommended to try clearing temporary files, unlinking your PC, or contacting OneDrive support first.

What should I do if hundreds of small remnant files are stuck syncing?

If you have hundreds of small files stuck that look like random process remnants, trying to reconnect OneDrive might not be enough. The best approach is to contact the OneDrive in-app support team through OneDrive.com so they can use advanced diagnostic tools to investigate the specific log errors.