File is Open in Another Program in Windows 11/10 [Fix]
If you’ve ever tried to delete, rename, or move a file in Windows 11 or Windows 10 and got hit with the message “The action can’t be completed because the file is open in another program”, you’re not alone.
This error appears when Windows detects an active file handle, meaning some application or system process is still connected to the file. Even if you don’t see the program open, it might still be running in the background.
Common causes include the File Explorer preview pane, media players, Office apps, cloud sync services, and even Windows indexing services. Sometimes, the system doesn’t release the file immediately after closing an app, which leads to temporary locking.
In this guide, I’ll walk you through step-by-step solutions that work consistently on both Windows 11 and Windows 10.
File is Open in Another Program in Windows 11/10 [Fix]
![File is Open in Another Program in Windows 11/10 [Fix]](https://gadgetsnurture.com/wp-content/uploads/2026/05/File-is-Open-in-Another-Program-in-Windows-1110-Fix-1024x576.jpg)
To fix the “File is open in another program” error in Windows 11 or 10, close the program using the file, restart File Explorer, or use Task Manager to end background processes. If the issue persists, check for file locks using Resource Monitor, disable the preview pane, or restart your PC to release the file.
The steps below are arranged from simplest to more advanced, so you can stop as soon as the issue is fixed.
Step 1: Close the Obvious Program Using the File
Start with the simplest check because it solves a surprising number of cases.
If you recently opened the file, make sure the application is fully closed. For example, if it’s a Word document, ensure Microsoft Word is completely shut down, not just minimized.
Go to Start menu > Search for the app name > If it shows as running, right-click it and select Close.
Also, check the system tray in the bottom-right corner of your screen. Some apps continue running there even after you close their main window. Right-click the app icon and choose Exit.
After closing the app, try deleting or renaming the file again. If it still fails, move to the next step.
Step 2: Restart File Explorer to Release File Locks
Sometimes the file isn’t locked by an app, but by File Explorer itself.
Go to Start menu > Search for Task Manager > Open it. In the Processes tab, scroll down and find Windows Explorer. Right-click Windows Explorer and select Restart.
Your screen might flicker for a second, which is normal. This refreshes the file system and often clears temporary locks.
Now go back to the file location and try the action again.
Step 3: Use Task Manager to End Background Processes
If restarting Explorer didn’t work, a background process is likely holding the file.
Go to Start menu > Search for Task Manager > Open it. Click on the Processes tab. Look for apps that might be using the file, such as media players, browsers, Office apps, or cloud sync tools like OneDrive.
Right-click the suspected process and select End Task.
If you’re unsure, close recently used apps first. Avoid ending system-critical processes like “System” or “Service Host.”
Once done, try accessing the file again.
Step 4: Disable the Preview Pane in File Explorer
The Preview Pane is a common but overlooked cause. It can lock files just by displaying them.
Go to File Explorer > Click on View in the top menu > Select Show > Click Preview pane to turn it off.
In Windows 10, go to File Explorer > Click View tab > Uncheck Preview pane.
After disabling it, click away from the file and then try deleting or renaming it again.
Step 5: Use Resource Monitor to Identify the Exact Locking Process
If you want to pinpoint the exact program locking the file, this is the most precise method.
Go to Start menu > Type Resource Monitor > Open it. Click on the CPU tab. In the Associated Handles search box, type the name of your file.
Windows will display all processes currently using that file.
Right-click the process and select End Process.
Be careful here. Only end processes you recognize or are confident about.
Once done, retry your action on the file.
Step 6: Check for Background Services and Sync Tools
Cloud services and background apps often lock files silently.
Go to Start menu > Settings > Apps > Installed apps. Look for apps like OneDrive, Google Drive, Dropbox, or antivirus programs.
Temporarily pause syncing or exit the app completely from the system tray.
Then go to your file location and try again.
Step 7: Change File Permissions if Access is Restricted
Sometimes the issue isn’t a lock but a permission restriction that behaves similarly.
Go to File Explorer > Right-click the file > Select Properties. Click the Security tab > Click Advanced. Click Change next to Owner and select your user account.
Apply changes and give yourself full control.
After updating permissions, try modifying the file again.
Step 8: Use Command Prompt to Force Delete the File
If the file is still stuck, you can use Command Prompt to override the lock.
Go to Start menu > Search for Command Prompt > Right-click > Run as administrator. Navigate to the file location using the cd command.
For example: cd C:\Users\YourName\Downloads
Then type: del filename.ext
Press Enter.
This method bypasses some file locking mechanisms and can delete stubborn files.
Step 9: Restart Your Computer to Clear All Locks
If nothing else works, a restart is the cleanest fix.
Go to Start menu > Power > Restart.
Restarting your system closes all processes and resets file handles. After rebooting, try deleting or editing the file before opening any apps.
Step 10: Boot into Safe Mode for Stubborn Cases
Safe Mode loads only essential services, which helps isolate the problem.
Go to Start menu > Settings > System > Recovery. Under Advanced startup, click Restart now. Select Troubleshoot > Advanced options > Startup Settings > Restart. Press 4 to enter Safe Mode.
Once inside Safe Mode, locate the file and try deleting it.
FAQs
Why does Windows say a file is open when it’s not?
Windows might still detect a background process using the file. This can include hidden services, preview handlers, or delayed system processes.
Can antivirus software lock files?
Yes, antivirus programs often scan files in real time, temporarily locking them during the process.
Is it safe to end processes in Task Manager?
It is safe if you know what the process is. Avoid ending system-critical processes as it may affect system stability.
Why does the issue keep coming back?
Recurring issues usually point to a specific app, like a sync service or indexing tool that frequently accesses files.
Will Safe Mode always fix it?
Safe Mode works in most stubborn cases because it disables non-essential programs that might be causing the lock.
