When you try to delete, rename, move, or modify a file in Windows 11, you may encounter the error “The action can’t be completed because the file is open in another program.” This message indicates that Windows has detected an active process using the file, preventing changes to avoid data corruption. Even if the program appears to be closed, background processes, File Explorer, antivirus software, or sync applications may still be holding the file open.
Fortunately, this issue is usually temporary and can often be resolved without restarting your computer. Windows provides several built-in tools to identify and release file locks, allowing you to delete or edit the file normally.
In this guide, we’ll walk through the most effective methods to fix the “File Is Open in Another Program” error in Windows 11.
What Causes the “File Is Open in Another Program” Error?
Windows locks a file whenever an application is actively using it. If another process tries to modify that file, Windows blocks the action to protect the data.
Common causes include:
- The file is open in another application.
- File Explorer is holding the file.
- Background processes haven’t closed properly.
- Antivirus software is scanning the file.
- Cloud sync apps like OneDrive are using the file.
- A program crashed but left the file locked.
- Indexing services are accessing the file.
- Windows thumbnail generation is using the file.
- Temporary system glitches.
Method 1: Close the Program Using the File
The simplest solution is to close the application currently using the file.
Check whether the file is open in applications such as:
- Microsoft Word
- Excel
- Adobe Reader
- Media Player
- Paint
- Video editors
- Archive utilities
After closing the application, wait a few seconds and try the operation again.
If you’re unsure which program is using the file, continue with the next methods.
Method 2: Restart File Explorer
Windows File Explorer itself may keep files locked, especially after previewing images, videos, or documents.
To restart File Explorer:
- Press Ctrl + Shift + Esc to open Task Manager.
- Locate Windows Explorer.
- Right-click it.
- Select Restart.
The desktop and taskbar will briefly disappear and reload. Once Explorer restarts, try deleting or renaming the file again.
Method 3: Close Background Processes Using Task Manager
Sometimes an application continues running in the background even after you’ve closed its window.
To end the process:
- Open Task Manager.
- Look under the Processes tab.
- Find the application related to the file.
- Right-click it.
- Select End task.
Be careful not to close important Windows processes.
After ending the task, retry your action.
Method 4: Pause Cloud Sync Applications
Cloud storage services can temporarily lock files while syncing.
Common examples include:
- OneDrive
- Google Drive
- Dropbox
Pause syncing from the application’s icon in the notification area or exit the sync application completely.
Once syncing stops, try working with the file again.
Method 5: Restart Your Computer
If you cannot identify the process using the file, restarting Windows clears most temporary file locks.
Save any open work before restarting.
After rebooting, attempt to delete, move, or rename the file before opening other applications.
This often resolves lingering background locks.
Method 6: Disable the Preview Pane in File Explorer
The Preview Pane can keep certain files, particularly PDFs, images, and videos, open while displaying previews.
To disable it:
- Open File Explorer.
- Select View.
- Choose Show.
- Click Preview pane to turn it off.
If the pane was already disabled, move to the next solution.
Method 7: Scan for Malware and Viruses
Malicious software can continuously access files, preventing modifications.
Open Windows Security:
- Go to Virus & threat protection.
- Select Scan options.
- Run a Full Scan.
Remove any detected threats and restart your computer.
Method 8: Perform a Clean Boot
A third-party startup application may be locking the file.
To perform a Clean Boot:
- Press Win + R.
- Type:
msconfig
- Press Enter.
- Open the Services tab.
- Check Hide all Microsoft services.
- Click Disable all.
- Open the Startup tab.
- Click Open Task Manager.
- Disable all startup items.
- Restart your computer.
If the file can now be modified, re-enable services one at a time to identify the conflicting application.
Method 9: Use Safe Mode
Safe Mode starts Windows with only essential drivers and services.
To enter Safe Mode:
- Open Settings.
- Navigate to System > Recovery.
- Under Advanced startup, click Restart now.
- Choose Troubleshoot > Advanced options > Startup Settings.
- Restart and select Safe Mode.
Once Windows starts in Safe Mode, try deleting or moving the file.
If successful, restart Windows normally afterward.
Method 10: Run System File Checker
Corrupted Windows system files may occasionally interfere with file handling.
Open Command Prompt as Administrator and run:
sfc /scannow
After the scan finishes, run:
DISM /Online /Cleanup-Image /RestoreHealth
Restart your PC once both commands complete.
Conclusion
The “File Is Open in Another Program” error in Windows 11 is usually caused by an application or background process that still has the file in use. In most cases, closing the related program, restarting File Explorer, ending background tasks, pausing cloud sync services, or restarting the computer resolves the issue quickly. If the file remains locked, performing a Clean Boot or starting Windows in Safe Mode can help identify software conflicts. Keeping Windows updated and closing applications properly before modifying files can help prevent this error from occurring in the future.
Frequently Asked Questions
Why does Windows say a file is open when every program is closed?
Some applications continue running in the background after their main window closes. File Explorer, antivirus software, cloud sync services, or indexing processes may also temporarily lock files.
How do I know which program is using a file?
Task Manager can help identify running applications. If the program isn’t obvious, restarting your computer or performing a Clean Boot usually releases the file lock.
Will restarting my computer unlock the file?
Yes. Restarting Windows closes most active processes and releases temporary file locks, making it one of the quickest solutions.
Can antivirus software lock files?
Yes. Antivirus programs may temporarily lock files while scanning them. Waiting for the scan to finish or temporarily pausing the antivirus (if appropriate) can resolve the issue.



