What Is a File Unlocker and How Do You Use One to Delete Locked Files on Windows?
Updated
A file unlocker is a Windows utility that identifies which process is holding a file or folder open and then lets you unlock, delete, copy, or rename that item. LockHunter is one example: a free 32/64-bit tool that shows the locking process, can kill or remove it, and deletes files into the Recycle Bin so a mistaken deletion can be restored. Use it when Windows refuses to delete or move a file and you don't know what is holding it; skip it when the file is open in a program you can simply close.
What a file unlocker actually does
Windows blocks deletion or renaming when a process still has a handle on the file. A plain error message tells you the file is "in use" but not by what. A file unlocker closes that gap in three steps:
- Detect — enumerate the processes with an open handle to the file or folder.
- Report — show detailed information about each locking process so you can judge whether it is legitimate.
- Act — unlock the file, or delete, copy, or rename it; if the process cannot be stopped, schedule deletion for the next OS restart.
LockHunter's feature set follows this model. It shows the processes locking a file or folder, gives detailed information on the process, allows unlock/delete/copy/rename, can delete at next restart, can kill the locking process or remove it from the hard drive, can unload DLLs from processes, and integrates into the Explorer menu.
How to delete a locked file with LockHunter
Prerequisites: a 32-bit or 64-bit Windows system (the site lists Windows 11/10/8.1/7), the LockHunter download (version 3.4.3, 3.2 MB), and a file you have already tried to delete normally.
- Reproduce the block. Attempt the delete in Explorer first so you know the file is genuinely locked, not just permission-restricted.
- Open the file in LockHunter. Either launch the tool and point it at the file or folder, or use the Explorer menu integration.
- Read the process list. Check which process holds the handle and what the detailed process information says. This is the decision point: a known application you can close is best handled by closing it; an unknown or suspicious process is a candidate for stronger action.
- Choose the least destructive action that solves the problem. Unlock first if you only need the file released. Delete if the file must go. Copy or rename if you need to preserve or move it.
- Verify. Confirm the file is gone from its original location and, if you deleted it, that it is in the Recycle Bin.
Expected result: the handle is released and the file operation succeeds. Because LockHunter deletes into the Recycle Bin, a wrong deletion is recoverable — restore it from the bin rather than re-downloading.
When unlock isn't enough
If the locking process will not release the file, escalate in this order:
- Kill the locking process — ends the process holding the handle.
- Remove the locking process from the hard drive — for processes that keep returning.
- Unload DLLs from processes — when a loaded library, not the process itself, is the blocker.
- Delete at next OS restart — the fallback when nothing can be stopped while Windows is running; the deletion completes on reboot.
Each step is more invasive than the last, so stop as soon as the file is free.
Safety rules that matter more than the tool
- Check the process before you kill it. Killing a system or security process can destabilize Windows or disable protection. The detailed process information exists so you can make that call.
- Prefer Recycle Bin deletion. LockHunter's design choice to delete into the Recycle Bin is the main safety net; use permanent deletion only when you are certain.
- Treat unknown lockers as a signal. The site positions LockHunter as useful against malware and programs that block files without reason — an unexplained lock is worth investigating, not just clearing.
- Use restart-scheduled deletion as a last resort, since it defers the outcome to the next boot and you won't see the result immediately.
Choosing between a file unlocker and closing the app
| Situation | Better choice |
|---|---|
| A known app (editor, viewer, sync client) holds the file | Close the app; no unlocker needed |
| You don't know which process is locking the file | File unlocker to identify the process |
| Process is unknown or suspicious | Unlocker, then investigate the process |
| File must be removed but the process can't stop | Unlocker with delete-at-next-restart |
| You only need to move or rename the file | Unlocker's copy/rename rather than delete |
Practical notes
- Match the build to your Windows architecture; LockHunter supports both 32- and 64-bit systems.
- Explorer integration saves time when you hit locked files often, but the standalone window gives you the fuller process view.
- If your problem is a USB or SATA drive that "cannot be stopped," that is a different job — the same publisher offers USB Safely Remove for hotplug device management, which is not a file unlocker.