Blog

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

Rough sketch of a video document chained to a program window, a magnifying glass on it and a trash can with a red X

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 resmon to 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.

Source: Microsoft Learn – PowerToys File Locksmith

Blog

← Back to the list Back to top ↑