To force-delete an undeletable file or folder on Windows 10 or 11, the fastest fix is the free Wise Force Deleter — install it, right-click the file, and choose Force Delete. If you would rather use built-in tools, end the locking process in Task Manager, then run Remove-Item "C:\Path\To\File" -Force -Recurse from an admin PowerShell. For permission errors, take ownership with takeown and icacls first.
Applies to: Windows 10 (22H2) and Windows 11 (23H2, 24H2, 25H2) | Last updated: May 4, 2026
Key Takeaways
- Three reliable methods — Wise Force Deleter (easiest), PowerShell
Remove-Item -Force -Recurse(built-in), and Safe Mode (when a service or driver is holding the file) - Most “undeletable” files are simply locked — Resource Monitor or Process Explorer can show which process is holding them open
- Permission errors need ownership change —
takeown /Ffollowed byicacls /grantusually clears them - Force-deletion is permanent — these files do not go to the Recycle Bin, so double-check the path before you commit
- If nothing works, run CHKDSK — disk corruption can make files appear locked when the real issue is a damaged file table
Quick Steps
- Try a normal delete first — close any program that might have the file open
- Open Resource Monitor > CPU > Associated Handles, search the file name, and end the process holding it
- If that fails, install Wise Force Deleter from wisecleaner.com, right-click the file, and choose Force Delete
- For a built-in approach, run
Remove-Item "C:\Path\To\Item" -Force -Recursefrom PowerShell as administrator - For permission errors, use
takeown /F "C:\Path" /R /D Ythenicacls "C:\Path" /grant administrators:F /T - If still stuck, reboot into Safe Mode and try the delete again
In This Guide
- Why Some Files Will Not Delete
- Method 1: Wise Force Deleter (Easiest)
- Method 2: PowerShell Remove-Item
- Method 3: Take Ownership with takeown and icacls
- Method 4: Delete from Safe Mode
- Method 5: Run CHKDSK if the Disk Is Corrupt
Why Some Files Will Not Delete
In my repair shop I dealt with this almost every day, and the cause is almost always one of four things:
- The file is open in another program. Windows shows messages like “The action can’t be completed because the file is open in…”. Closing the program usually fixes it instantly.
- A background service or driver has it locked. Antivirus, sync clients (OneDrive, Dropbox), and indexing services frequently hold file handles invisibly.
- You do not have permission. System files, files inherited from another Windows install, and files owned by the SYSTEM or TrustedInstaller accounts will refuse normal deletes.
- The drive has corruption. A damaged Master File Table or bad sectors can make a file appear lockable but not deletable, even after a reboot.
The methods below cover all four cases. Start with Method 1 — for most readers it solves the problem in 30 seconds.
Method 1: Wise Force Deleter (Easiest)
Wise Force Deleter is a free utility that closes the open handles on a file and deletes it in one step. It is the easiest option for non-technical users because it ships with a right-click context menu entry.
Step 1: Download and install Wise Force Deleter
Go to the Wise Force Deleter download page and click Free Download. Run the installer, accept the licence, click Next, then Install. When setup finishes, untick the View user guide box, leave Run Wise Force Deleter ticked, and click Finish.


Step 2: Add the stuck file or folder
In the Wise Force Deleter window, click Add File or Add Folder depending on what you are deleting. Browse to the location, select the item, and click OK. You can also drag-and-drop directly from File Explorer.

If you added a folder, the app warns you that everything inside will be deleted. If you are sure, click Yes.

Step 3: Click Unlock and Delete
Click the Unlock and Delete button at the bottom of the window, then click Yes to confirm. The status changes to Unlocked and Deleted and the file disappears.

Tip: Wise Force Deleter also adds a right-click Force Delete entry to File Explorer. After installation you can right-click any file or folder and skip the app entirely.
Method 2: PowerShell Remove-Item with -Force -Recurse
If you would rather not install anything, PowerShell handles most stuck files natively. Right-click the Start button and choose Terminal (Admin) on Windows 11, or Windows PowerShell (Admin) on Windows 10.
Replace the path below with the actual file or folder you want gone:
Remove-Item "C:\Path\To\Stuck\Folder" -Force -Recurse
-Force tells PowerShell to remove read-only and hidden items; -Recurse walks into subfolders without prompting. If the command fails with an Access denied error, jump to Method 3 to take ownership first. If it fails with The process cannot access the file, the file is locked — use Resource Monitor to find the locking process or move on to Method 1 or Method 4.
Tip: Open Resource Monitor (search for it in Start), go to the CPU tab, and type the file or folder name into the Associated Handles search box. Any process holding it open will be listed — right-click and choose End Process, then retry the delete.
Method 3: Take Ownership with takeown and icacls
If a delete fails with You require permission from SYSTEM or You require permission from TrustedInstaller, you do not own the file. The fix is to claim ownership and grant yourself full control before deleting. Run these two commands in an admin PowerShell or Command Prompt:
takeown /F "C:\Path\To\Item" /R /D Y
icacls "C:\Path\To\Item" /grant administrators:F /T
The first command makes your administrator account the owner of the file or folder (the /R recurses; /D Y auto-confirms). The second grants the local Administrators group full access to everything inside (the /T recurses). Once both finish, retry the delete with normal File Explorer or with Remove-Item.
Warning: Do not run takeown/icacls on system folders like
C:\Windows,C:\Program Files, or anywhere managed by Windows itself. Changing ownership of those locations can break Windows Update and the operating system in general. Use these commands on user-data folders, leftover application directories, and orphaned files only.
Method 4: Delete from Safe Mode
When a driver, service, or persistent malware is holding a file open, Safe Mode is often the cleanest fix because Windows boots with only essential drivers and most third-party services are disabled.
Open Settings > System > Recovery > Advanced startup > Restart now. After the reboot, choose Troubleshoot > Advanced options > Startup Settings > Restart, then press 4 when the menu appears to enter Safe Mode. Once you are signed in, navigate to the file and delete it normally — or run the PowerShell command from Method 2. To leave Safe Mode, just restart.
Method 5: Run CHKDSK if the Disk Is Corrupt
If none of the methods above work, the file may be sitting in a damaged spot on the drive. Open admin PowerShell and run a disk check:
chkdsk C: /f /r
Replace C: with the drive letter the stuck file lives on. Type Y when prompted to schedule the scan for next reboot, then restart. CHKDSK can take an hour or longer on a large or failing drive — let it run uninterrupted. After it finishes, try the delete again.
If the drive itself is failing, CHKDSK might find unrecoverable bad sectors. At that point you should back up your important data and look at replacing the drive — files stuck on bad sectors usually indicate impending failure.
Frequently Asked Questions
How do I find which program is holding a file open?
Use Resource Monitor: search for it in Start, click the CPU tab, and type the file name into the Associated Handles search box. Every process that has the file open is listed. Right-click any of them and choose End Process, then retry the delete. Process Explorer from Microsoft Sysinternals is even more thorough for stubborn cases.
Is Wise Force Deleter safe to use?
Yes. Wise Force Deleter is a long-running free utility from WiseCleaner with millions of downloads, and the installer is signed and clean. The only thing to be cautious about is the deletion itself — the tool bypasses normal protections, so a typo in the path will permanently destroy the wrong file.
Can I recover a file after force-deleting it?
Usually not. Force-deleted files do not go to the Recycle Bin. Recovery tools like Recuva can sometimes pull them back if you act before the disk space is overwritten and the drive is not heavily used, but on an SSD with TRIM enabled the data is wiped almost immediately. Treat force-deletion as permanent.
What does “You require permission from TrustedInstaller” mean?
It means the file or folder is owned by the TrustedInstaller account, which Windows uses to protect system files. Use the takeown and icacls commands from Method 3 to take ownership before deleting. Be very careful — files with this protection are usually system files, and deleting the wrong one can break Windows.
Does this work on Windows 7 or 8?
Wise Force Deleter, takeown, icacls, and PowerShell’s Remove-Item all work on Windows 7 and 8.1, but those versions are out of support and I do not recommend running them on the internet. If you are still on Windows 7, see my guide on Windows 10 Extended Security Updates for a safer migration path.
