> ## Content Index
> Fetch the complete content index at: https://winerror-repair.org/llms.txt
> Use this file to discover other available public pages before exploring further.

# Delete a Corrupted File in Windows: Check the Error First
- URL: https://winerror-repair.org/delete-corrupted-files-windows/
- Published: 2026-11-24T19:21:18.000Z
- Updated: 2026-11-25T12:51:57.000Z
- Description: Confirm the unwanted file, read the exact error and choose a normal deletion, an open-file check or a protected filesystem-repair route.
- Author: Daniel Hayes
- Tags: Windows system file repair

To remove a corrupted file in Windows 11 or 10, first confirm that it's an unwanted personal file, then select it in File Explorer and press **Delete**. If deletion fails, follow the exact error: close the app holding the file, check authorized access, or investigate the filesystem. A stronger delete command won't repair an unreadable drive.

I'd read the error before trying force-delete switches. A file that won't open, a file that's still in use and a damaged directory entry can look similar in Explorer, but they need different next steps.

## Confirm the target and protect wanted files

Keep the filename, full location and complete error privately. Check that you're viewing the intended drive and folder, not a recent-file shortcut or another copy with the same name. If the destination itself won't open, use the [unavailable-location and direct-path checks](https://winerror-repair.org/location-is-not-available-file-explorer/) before attempting deletion.

If you need the file's contents, stop here and use a known backup or arrange recovery. Deleting the damaged copy doesn't recover it. Microsoft's [lost-file recovery guidance](https://support.microsoft.com/en-us/windows/windows-file-recovery-61f5b28a-f5b8-3cc2-0f8e-a63cb4e1d4c4?ref=winerror-repair.org) says to minimize computer use because new writes can overwrite recoverable data; recovery attempts need a different destination from the source.

For an unreadable file on a drive holding other wanted data, verify a separate usable backup before filesystem repairs. Repeated read errors, disappearing storage or failed copies change the priority. Use the [storage warning and data-preservation checks](https://winerror-repair.org/ssd-drive-failure-symptoms/) instead of retrying deletion, installing a shredder or formatting the drive.

These instructions are for a personal file you've decided to discard. Don't manually remove Windows DLLs, drivers or application components because a scan called them corrupt. If SFC reports unrepaired protected files, use the [SFC and DISM protected-file repair route](https://winerror-repair.org/windows-resource-protection-found-corrupt-files-but-was-unable-to-fix-some-of-them/). An application's broken installation needs its supported repair or uninstall procedure.

## Choose the branch from the deletion error

| Message or behavior                                                     | Next action                                                                                   |
| ----------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
| File In Use or open in another program                                  | Save work and close the identified app normally, then retry the same file.                    |
| Access is denied or administrator permission required                   | Confirm your authorized access; ask the file owner or IT instead of taking ownership blindly. |
| The file or directory is corrupted and unreadable, including 0x80070570 | Protect the drive's wanted data and assess the filesystem branch below.                       |
| File not found, an unusual name or an exceptionally long path           | Confirm the real filename and path before selecting a deletion method.                        |
| Explorer stays Not Responding without a final error                     | Record the stalled operation; use the Explorer hang investigation.                            |

Microsoft's [NTFS deletion troubleshooting](https://learn.microsoft.com/en-us/troubleshoot/windows-server/backup-and-storage/cannot-delete-file-folder-on-ntfs-file-system?ref=winerror-repair.org) separates permissions, open files, filesystem corruption and naming problems. Its legacy command examples aren't a reason to reset permissions or paste a special path into every Windows 11 deletion attempt.

## Try one normal deletion of the intended file

Save work in the app that used the file and close it normally. Press **Windows + E**, browse to the verified folder, select only the unwanted file and press **Delete**. Microsoft's [File Explorer deletion instructions](https://support.microsoft.com/office/delete-a-file-abaa4886-6a79-4d81-842d-46652e08c72a?ref=winerror-repair.org) document that sequence.

Read any confirmation before accepting it. Don't assume that every storage location or Recycle Bin configuration gives you an undo route. Avoid **Shift + Delete** and don't empty the entire Recycle Bin as a troubleshooting step. If ordinary deletion succeeds, confirm the unwanted item is absent from its original folder and leave the other files alone.

## If another program has the file open

[![Windows File In Use message says the action cannot be completed because the file is open in another program.](https://storage.ghost.io/c/a6/05/a605dee4-a7e9-4ae9-b795-ec5121bbb083/content/images/2026/11/delete178-file-in-use.webp)](https://storage.ghost.io/c/a6/05/a605dee4-a7e9-4ae9-b795-ec5121bbb083/content/images/2026/11/delete178-file-in-use.webp?ref=winerror-repair.org)

File In Use points to an open-file condition. It doesn't establish that the file's contents or the disk are corrupt. [Enlarge the message](https://storage.ghost.io/c/a6/05/a605dee4-a7e9-4ae9-b795-ec5121bbb083/content/images/2026/11/delete178-file-in-use.webp?ref=winerror-repair.org).

Close the document in the named app, including another window that may still have it open. For a shared file, ask the other authorized user to close it. Then retry deletion. Don't end an unfamiliar system process, disable security software or force-close a file handle just to make the warning disappear.

If the app is closed but the same error returns, save other work and perform a normal Windows restart. Reopen the verified folder before launching that app again and retry the one unwanted file. A restart can clear an open-file condition; it doesn't repair damaged file contents or prove the drive is healthy. Safe Mode can help investigate a persistent background lock, but it won't repair an unreadable filesystem; have support choose that route when the normal app-close comparison fails.

When Explorer itself remains hung, use the [Explorer freeze and stalled-operation checks](https://winerror-repair.org/windows-file-explorer-keeps-freezing/). Check any interrupted copy's destination before assuming the transfer completed. Repeatedly restarting Explorer isn't evidence that a directory error has been repaired.

## Use a confirmed single-file command only when appropriate

If the drive is stable, the data is protected and Explorer can identify the exact unwanted personal file, Command Prompt offers another deletion route. This is permanent deletion rather than a Recycle Bin recovery plan. Don't use it for a needed file, a protected Windows component, an unresolved permission problem or an unreadable volume.

Open **Command Prompt**. In the example below, `D:\Discard\unwanted-file.tmp` is an example path, not a file to look for on your PC. Replace it with the verified full filename, keep the double quotes and don't use `*`, `?` or a folder-only path. First list that exact item:

```
dir /a "D:\Discard\unwanted-file.tmp"
```

Microsoft's [dir command reference](https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/dir?ref=winerror-repair.org) documents listing a particular file and using `/a` to include hidden and system entries. Check that the output identifies the one intended file, not a directory or a set of files. If the path or result is wrong, stop.

For that same verified file, request deletion with confirmation:

```
del /p "D:\Discard\unwanted-file.tmp"
```

Read the filename in the prompt. Press **Y** only for the item you intend to discard; press **N** to cancel. Microsoft's [del reference](https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/del?ref=winerror-repair.org) defines `/p` as confirmation, `/f` as forcing read-only-file deletion and `/q` as suppressing confirmation. Those switches don't repair filesystem corruption or grant missing access rights.

If the command returns the same error, keep it. Don't escalate to quiet recursive folder deletion, overwrite the file with junk, or delete its parent folder. An unusual trailing dot, reserved name or long path needs a targeted naming diagnosis with the file's owner or support.

## If the error names a corrupted or unreadable directory

A filesystem problem can prevent deletion even when a force-delete command names the right file. In a [Windows 10 SD-card report](https://superuser.com/questions/1220204/cannot-delete-a-file-the-file-or-directory-is-corrupted-and-unreadable?ref=winerror-repair.org), one JPEG returned 0x80070570 while other files could still be written and deleted. Working neighboring files didn't make the unreadable entry disappear.

Repairing the filesystem affects the volume, not just the unwanted file. Proceed only after protecting the other data, identifying the actual local volume and closing work on it. If reads are unstable or the only wanted copy can't be backed up, stop for recovery assessment instead.

For a stable, backed-up local volume with this filesystem error, Microsoft's [chkdsk reference](https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/chkdsk?ref=winerror-repair.org) documents `/f` for fixing filesystem errors. Use an authorized administrator Command Prompt. This example targets **D:**; replace the letter with the verified volume that actually holds the affected file:

```
chkdsk D: /f
```

The volume must be locked. If Windows offers a check at the next restart, agree only when you can close work and allow that check to finish. Don't add `/x` to force a dismount: it invalidates open handles. `/r` includes repair and a broader sector check; it isn't an automatic extra switch for every undeletable file. Avoid interrupting an active check.

For a mapped network drive, have the server administrator investigate the underlying volume and arrange any downtime. Chkdsk can't operate on a drive letter redirected over the network. A command against your local C: won't repair that share.

## Verify the result and stop repeating failed repairs

Read the disk check's final report before retrying the original file. If the check reports uncorrected errors or access remains unstable, stop before more deletion attempts. After a completed repair with stable access, try normal Explorer deletion again. Confirm the unwanted item is gone from its actual location and that the other needed files still open. Keep the report and error if deletion still fails.

Published outcomes don't support an endless repair loop. In an older [restored-NTFS-folder case](https://serverfault.com/questions/63641/error-0x80070570-how-to-delete-corrupted-and-unreadable-file?ref=winerror-repair.org), repeated boot-time disk checks hadn't resolved the deletion error; the owner later reported success with a different suggestion. That doesn't establish a current Windows 11 repair recipe or justify writing to the drive through several unrelated tools.

For an unresolved file, give support the exact message, private path, drive type, backup status, attempt times and results of the specific attempts. A recurring corruption error needs its cause investigated. The [Windows system repair hub](https://winerror-repair.org/tag/system-repair/) separates the remaining file-repair and recovery tasks.