“The action can’t be completed because the file is open in another program” means some app on your PC still has the file open, so Windows won’t let you delete, rename or move it. Close the app that uses the file. If you don’t know which one, run resmon to open Resource Monitor, go to the CPU tab, type the file name in Associated Handles, then right-click the process and choose End Process (save your work in that app first if you can).

Quick Fixes First
- Close programs that might use the file, including background windows. Check the taskbar and system tray.
- Turn off the preview pane: File Explorer previews can lock files. Click View and turn off Preview pane and Details pane.
- Restart File Explorer: in Task Manager, right-click Windows Explorer and choose Restart.
- Restart the PC. This releases every lock.
Does this work in Windows 11?
Yes, the same steps apply. Windows 10 reached end of support on October 14, 2025.
Find the Program With Resource Monitor
- Press Windows + R, type resmon, and press Enter.
- Open the CPU tab and expand Associated Handles.
- Type part of the file name in the search box.
- Note the program listed under Image. Close it normally, or right-click and choose End Process.
Ending a process can lose unsaved work in that program, so switch to it and save first when possible.
Find the Program With Process Explorer
Microsoft’s free Process Explorer (from Sysinternals) is more detailed: press Ctrl + F, search the file name, and it jumps to the process and handle. You can close the handle, but closing the whole program is safer.
Is it safe to use “unlocker” tools?
Force-closing handles can corrupt files or crash programs. Prefer closing the program. If you use a tool, stick to well-known ones like Process Explorer.
Common Culprits
| Program | What to do |
|---|---|
| Office apps (Word, Excel) | Close the document; check for hidden instances in Task Manager |
| Cloud sync (OneDrive, Dropbox) | Pause syncing, then retry |
| Antivirus scanning | Wait a minute, or retry after the scan |
| Media players and photo apps | Close them; thumbnails and previews can hold files |
| Command Prompt or PowerShell | Change to another folder with cd or close the window |
Still Locked? Try Safe Mode
Restart in Safe Mode, where fewer programs start, and delete or move the file there. Hold Shift, click Restart, then choose Troubleshoot > Advanced options > Startup Settings > Restart and press 4.
Other “Locked” Situations
- Read-only file: right-click > Properties and uncheck Read-only.
- “Locked for editing by another user”: someone else has an Office file open on a shared drive, or a leftover owner file (named with a ~$ prefix) remains. Ask them to close it, or delete the ~$ file if you’re sure no one is using it.
- “Access denied” or “You need permission”: that’s a permissions issue, not a lock. On your own files, check Properties > Security. On shared or work files, ask the owner or IT rather than changing permissions.
- Protected View in Office: click Enable Editing to edit files downloaded from the internet.
To hide or protect files instead, see how to put a password on a folder in Windows 10.
If the locked file is an Excel workbook, Excel has its own read-only settings.

Kermit Matthews runs Live2Tech from just outside Philadelphia. He is an IT specialist with over 20 years of experience, from a university help desk to small-business IT, IT management and his own consulting practice, and has written tech guides full time since 2020. Steps are checked against the current software on a real device or the maker’s official documentation. More about Kermit.