How to Use LockHunter to Delete or Unlock a File Locked by Another Process on Windows
Updated
LockHunter is a free 32/64-bit Windows tool that shows which process is locking a file or folder, then lets you unlock, delete, copy, or rename it. It fits the common case where Windows says a file is "in use" but you cannot tell by what. Unlike some similar tools, LockHunter moves deleted files to the Recycle Bin, so a mistaken deletion can be restored. It runs on Windows 11/10/8.1/7 (version 3.4.3, 3.2 MB per the vendor page).
When a file is actually locked
Typical signs: deleting or renaming fails with "The action can't be completed because the file is open in another program," or a folder won't remove even after you close the obvious application. Before reaching for a tool, close the program you suspect and retry once. If the error persists, the lock is held by something less visible — a background service, an updater, or malware, which the vendor names as a target use case.
Step-by-step with LockHunter
- Download and install LockHunter from lockhunter.com. The page lists a single Windows build (3.4.3) for 32- and 64-bit systems.
- Open the locked file or folder in LockHunter. You can launch the app and browse to the path, or use the Explorer integration described below.
- Read the process list. LockHunter shows the processes locking that file or folder and gives detailed information on each process. Use this to judge whether the lock is legitimate (e.g., your own editor) or suspicious.
- Choose an action. The tool allows you to unlock, delete, copy, or rename the locked file. Deleting sends the file to the Recycle Bin rather than erasing it permanently.
- Verify. Try opening, renaming, or deleting the file in Explorer again. If it still fails, a process may have re-acquired the lock — repeat the check.
When the process won't release the file
- Kill the locking process from within LockHunter. This is the fastest fix but the riskiest: terminating a system or application process can lose unsaved work or destabilize the program. Confirm the process identity from the detailed information before killing it.
- Delete at next OS restart. If the file is in use by a service you can't safely stop, schedule deletion for the next reboot. The file disappears after Windows restarts.
- Remove the locking process from the hard drive or unload DLLs from processes — advanced options the vendor lists for stubborn cases. Treat these as last resorts and only when you understand what the process does.
Using the Explorer right-click menu
LockHunter integrates into the Explorer context menu. Right-click the locked file or folder and choose the LockHunter entry to open it with that path already selected. This skips the manual browse step and is the quickest route for one-off unlocks.
Quick reference
| Need | LockHunter option | Caution |
|---|---|---|
| See what's locking the file | Process list with details | None — read-only inspection |
| Remove the lock | Unlock | May fail if process re-locks |
| Delete the file | Delete (to Recycle Bin) | Restorable if wrong |
| File locked by a service | Delete at next restart | Takes effect only after reboot |
| Process must stop | Kill locking process | Risk of data loss or instability |
| Fast access | Explorer menu integration | — |
Practical notes
- Because deletions go to the Recycle Bin, you can undo a wrong choice — but only until you empty it.
- The vendor positions LockHunter for fighting malware and programs that block files "without a reason." If the locking process looks unfamiliar, investigate it rather than only unlocking the file.
- The site also promotes USB Safely Remove for USB/SATA drive issues; that is a separate product and not needed for ordinary file locks.
- No pricing beyond "free tool" is stated on the page; no login or account requirement is mentioned.