0XC0000121

STATUS_CANNOT_DELETE (0XC0000121) – File Won’t Delete

Windows Errors Intermediate 👁 1 views 📅 May 27, 2026

A file or folder that won’t delete, usually locked by a running process. Here’s the fix chain: quick unlock, then safe mode, then a low-level tool.

The 30-Second Fix: Unlock the File with Process Explorer

Nine times out of ten, this error means something’s got a handle on the file. Could be a background app, a virus scanner, or even Windows itself. Don’t bother with a simple reboot yet — that’s a coin flip.

Grab Process Explorer from Microsoft Sysinternals (it’s free, no install needed). Run it as administrator. Hit Ctrl+F, type the file name, and hit Enter. It’ll show you the process holding it open. Right-click that process and choose Close Handle. Then try deleting the file again.

If you see multiple handles, close them all. I’ve seen this fix work in seconds for files stuck open by Chrome downloads or Windows Search Indexer. If that didn’t work, move on.

The 5-Minute Fix: Safe Mode or Command Line

Still stuck? Boot into Safe Mode. That loads only the bare minimum drivers and services — often enough to shake the lock.

  1. Hold Shift while clicking Restart in Windows.
  2. Troubleshoot > Advanced Options > Startup Settings > Restart.
  3. Press 4 for Safe Mode.
  4. Navigate to the file and delete it.

If Safe Mode works, you’re done. If not, don’t waste time — the file’s locked at the kernel level.

Next, try the command line with del and a full path:

del /f /q "C:\Full\Path\To\StubbornFile.ext"

The /f forces deletion, /q skips prompts. Still fails? That’s rare. Go advanced.

The 15+ Minute Fix: Boot from USB and Nuke It

When Windows itself refuses to let go, you bypass it entirely. Boot from a Windows installation USB or a Linux live USB. This is the nuclear option — it works every time.

Option A: Windows Recovery Environment (WinRE)

  1. Boot from a Windows installation USB (any version works).
  2. On the first screen, click Repair your computer.
  3. Troubleshoot > Advanced Options > Command Prompt.
  4. Find the drive letter. Usually C: but it might be D: in WinRE. Run notepad and open File > Open to browse — that shows you the real letter.
  5. Then run:
del /f /s /q "D:\Path\To\File.ext"

Option B: Ubuntu Live USB

  1. Boot from Ubuntu USB (takes 5 minutes to create).
  2. Choose "Try Ubuntu" (don’t install).
  3. Open Files, find your Windows drive under Devices.
  4. Right-click the file, move to Trash, then empty Trash.

I’ve never seen an NTFS file survive a Linux live USB delete. If it does, the drive has bad sectors. Check the disk with chkdsk /f afterward.

When It’s Not Just a Locked File

If you keep seeing this error on different files in the same folder, your drive might be failing. Run a quick chkdsk /f on the drive before you waste more time. Also check for file system corruption — sfc /scannow can fix system file issues that cause phantom locks.

One more thing: if this file is in C:\Windows\System32 or C:\Program Files, think twice. Could be a Windows system file or a trusted installer lock. Deleting those can break things. But for a random file you know is safe — the above workflow kills it dead.

Bottom line: Start with Process Explorer. If that fails, Safe Mode. If that fails, boot from USB. Don’t install third-party unlocker apps — they’re often malware. The Sysinternals tools are all you need.

Was this solution helpful?