Solve: can’t delete file folder in Windows because file is in use or locked

  1. Download Process Explorer
    https://docs.microsoft.com/en-us/sysinternals/downloads/process-explorer
    then run procexp64.exe or procexp.exe
  2. Choose Find-> File handle or DLL, pop up window appears.
  3. Type in the filename you want to delete.
Download Process Explorer
  • 4. Related processes are displayed on bottom left of the main window.
    Right click on the window below on the filename and choose ‘Close handle’.
Process Explorer

Re-try to delete the file or folder