How to Delete Corrupted Files in Windows 11

To delete a corrupted file in Windows 11, first close any app that might be using it and restart the PC, then try deleting it again. If Windows still refuses or says the file is unreadable, repair the drive with chkdsk in an administrator terminal (for example chkdsk D: /f), then delete the file. Starting in Safe Mode also helps when something keeps the file locked. Don’t delete Windows system files; if those are corrupted, repair them with sfc /scannow instead.

Quick Answer

Restart and retry. Still stuck? Run chkdsk X: /f as admin on that drive, then delete. For system files, run sfc /scannow instead of deleting.

Steps to Delete a Corrupted File

  1. Close programs that might have the file open, restart and try deleting again.
  2. Right-click Start and open Terminal (Admin).
  3. Run chkdsk followed by the drive letter and /f, such as chkdsk D: /f. For the C: drive it runs at the next restart.
  4. After it finishes, delete the file normally.
  5. If it’s still locked, start in Safe Mode and delete it there.
Administrator terminal running chkdsk with the fix option to repair a drive before deleting a corrupted file
Repair the drive’s file system first, then delete the file.

Which Fix to Use

Symptom Fix
“File is in use” Close apps or restart; try Safe Mode
“File or directory is corrupted and unreadable” chkdsk X: /f, then delete
Path too long Rename or move the parent folder to shorten the path
Corrupted Windows files sfc /scannow and DISM repairs, not deletion
Failing drive (clicking, many errors) Back up now and replace the drive

Troubleshooting

Frequently Asked Questions

Is it safe to run chkdsk?

Yes, but back up important data first if the drive is failing, as repairs can’t recover everything.

Can I recover a corrupted file instead?

Sometimes, from a backup or File History. Otherwise the damaged data may be lost.

Why do files get corrupted?

Common causes are sudden power loss, unsafe removal of USB drives, malware or a failing drive.

Summary

  1. Restart and retry.
  2. Run chkdsk on the drive.
  3. Delete the file, using Safe Mode if needed.
  4. Repair system files with sfc instead of deleting them.