Can't Delete a File Because "It Is Open in Another Program"? Find What Is Locking It With Resource Monitor (Windows 10/11)

Sometimes when you try to delete or move a recorded video, Windows says "The action can't be completed because the file is open in another program." It often does not tell you which program, but the built-in Resource Monitor can find it.
Try these first
- Close any program that is playing or editing the file. If it is a recording, make sure the recording program has actually stopped.
- If the Preview pane is open on the right side of File Explorer, it may be holding the video. Press Alt + P to close it and try again.
- A large file you just created may stay locked briefly while antivirus scans it or a preview is generated. Try again after a few seconds.
Find the program with Resource Monitor
- Press Win + R and type
resmonto open Resource Monitor. You can also open it from the Performance tab of Task Manager with Open Resource Monitor. - Open the CPU tab and type part of the file name (for example, the start of the name) into the search box of Associated Handles.
- The Image column of the results shows the program that is using the file.
- If you can, switch to that program and close it normally. If not, right-click the result and choose End Process. Any unsaved work in that program will be lost.
- If the result is explorer.exe, the simplest fix is to choose Windows Explorer → Restart in Task Manager.
Another way: File Locksmith in PowerToys
- If you install Microsoft's free PowerToys, right-clicking a file adds a What's using this file? (File Locksmith) menu.
- It lists the programs holding the file straight away, and you can end them from there.
If it still does not work
- Restarting the PC releases most locks. Delete or move the file right after the restart, before opening other programs.
- If the same program keeps grabbing the file, temporarily turn it off in startup apps and try again.
Blog
- "Scan and Fix" Drive Message? How to Check and Repair Disk Errors With chkdsk (Windows 10 and 11)
- Windows Update Keeps Replacing Your Graphics or Device Drivers? How to Stop Automatic Driver Installs (Device Installation Settings, Group Policy)
- Protect Your PC When You Step Away: Win+L, Dynamic Lock and Automatic Lock With the Screen Saver (Windows 11)
- How to Block or Allow Internet Access for One Program: Windows Firewall Allowed Apps and Outbound Rules (Windows 10/11)
- Blank Icons or Missing Video Thumbnails in File Explorer? How to Rebuild the Icon Cache and Thumbnail Cache (Windows 11)
- How to Check That a Downloaded Program Is Genuine: File Hashes (certutil, Get-FileHash) and Digital Signatures (Windows 10/11)
- Does "Shut Down" Not Fully Shut Down? How to Turn Off Fast Startup and Do a Full Shutdown (Shift + Shut Down)
- Protecting Your Laptop When You Step Away, Part 2: How to Turn On a BitLocker Startup PIN (Windows 11 Pro)