Your cart is currently empty!
How to Fix the “The action cannot be completed because the file is open” Windows Error
Ever tried to move, delete, or rename a file in Windows and hit this annoying roadblock?
“The action cannot be completed because the file is open in another program.”
Frustrating, right? The worst part is: sometimes you’re sure nothing is using the file. Still, Windows won’t let go. The good news? This error is fixable. Here’s how to deal with it and get back to work.
1. Close the Program Using the File
The most obvious fix: close the app that might be using the file.
- Editing a Word doc? Close Word.
- Watching a video? Quit the media player.
- Just to be safe, save your work and close all open apps.
Try the action again after closing everything. If it works—great. If not, keep going.
2. Use Task Manager to Kill Background Processes
Sometimes, programs don’t close completely. Here’s how to shut them down fully:
- Press
Ctrl + Shift + Esc
to open Task Manager. - Look for the app that might still be using the file.
- Select it and click End Task.
If you’re not sure which app is the problem, try ending processes one at a time (except critical system ones) and retry the action.
3. Restart Windows Explorer
Windows Explorer itself often locks files, especially when you’re working with thumbnails or previews.
Here’s how to restart it:
- Open Task Manager (
Ctrl + Shift + Esc
). - Scroll to Windows Explorer.
- Right-click it and select Restart.
Now try your file action again.
4. Use File Unlocker Tools (Optional)
If the file is really stuck, a file unlocking tool can help.
Popular options:
- LockHunter
- Unlocker
- Process Explorer (from Microsoft)
These tools show which process is locking a file and can force it to release. Use with care.
5. Boot into Safe Mode
Safe Mode starts Windows with the bare minimum running. That means fewer chances a background process is locking your file.
To boot into Safe Mode:
- Press
Windows + R
, typemsconfig
, hit Enter. - Go to the Boot tab.
- Check Safe boot > Minimal, click OK, and restart.
Once in Safe Mode, try deleting or moving the file. Don’t forget to turn Safe Mode off afterward using the same steps.
6. Check for Malware
Some malware or buggy programs can keep files locked for no clear reason. Run a scan with Windows Defender or a trusted antivirus tool.
Final Tip: Don’t Force It Unless You Have To
If it’s a system file or something in use by Windows, don’t force delete it unless you’re sure it’s safe. When in doubt, research the file name first.
Wrap-Up
This error is common but beatable. Most of the time, it comes down to a background process that just needs to be shut down. Try the steps above in order, and you’ll free your file in no time.
Have a trick that works for you? Drop it in the comments!