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
- Close programs that might have the file open, restart and try deleting again.
- Right-click Start and open Terminal (Admin).
- Run chkdsk followed by the drive letter and /f, such as chkdsk D: /f. For the C: drive it runs at the next restart.
- After it finishes, delete the file normally.
- If it’s still locked, start in Safe Mode and delete it there.

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
- chkdsk details: See running chkdsk on Windows 11.
- Finding damaged system files: See checking for corrupted files in Windows 11.
- Safe Mode: See getting into Safe Mode.
- Deleted the wrong file: See finding deleted files.
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
- Restart and retry.
- Run chkdsk on the drive.
- Delete the file, using Safe Mode if needed.
- Repair system files with sfc instead of deleting them.

Kermit Matthews is a freelance writer based in Philadelphia, Pennsylvania with more than a decade of experience writing technology guides. He has a Bachelor’s and Master’s degree in Computer Science and has spent much of his professional career in IT management.
He specializes in writing content about iPhones, Android devices, Microsoft Office, and many other popular applications and devices.