# How do I delete a corrupt zombie file in Win 10?

**URL:** <https://boards.straightdope.com/t/how-do-i-delete-a-corrupt-zombie-file-in-win-10/980025>\
**Category:** Factual Questions\
**Created:** [February 19, 2023, 3:39am UTC](https://boards.straightdope.com/t/how-do-i-delete-a-corrupt-zombie-file-in-win-10/980025 "2023-02-19T03:39:10Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mortimus](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@Mortimus](https://boards.straightdope.com/u/Mortimus)\
**Post date:** [February 19, 2023, 3:39am UTC](https://boards.straightdope.com/t/how-do-i-delete-a-corrupt-zombie-file-in-win-10/980025/1 "2023-02-19T03:39:10Z")

</div>

I can’t delete it, move it, rename it or do anything with it. I tried using cmd, no joy there either. It’s like the file exists but it doesn’t. So I tried deleting the whole folder, nope can’t do that either. Somehow the file got renamed, not sure if Win did it or how it happened. The file got renamed “~tmp~(file name) (file size) (date).pdf” Somehow the file size and date got included as part of the file name but the .pdf extension is correct.

---

<div class="post-metadata">

**Author:** ![What\_Exit](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/what_exit/32/10652_2.png) [@What\_Exit](https://boards.straightdope.com/u/What_Exit)\
**Post date:** [February 19, 2023, 3:41am UTC](https://boards.straightdope.com/t/how-do-i-delete-a-corrupt-zombie-file-in-win-10/980025/2 "2023-02-19T03:41:57Z")

</div>

I had this problem and had to boot up in safe mode, command prompt and delete by navigating to the folder with dir commands and then either del the file or rmdir the folder. I’m not even sure rmdir is the command, but easy to google that part.

---

<div class="post-metadata">

**Author:** ![Dr.Strangelove](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/dr.strangelove/32/6613_2.png) [@Dr.Strangelove](https://boards.straightdope.com/u/Dr.Strangelove)\
**Post date:** [February 19, 2023, 3:52am UTC](https://boards.straightdope.com/t/how-do-i-delete-a-corrupt-zombie-file-in-win-10/980025/3 "2023-02-19T03:52:24Z")

</div>

Try using the command prompt, but execute “dir /X” first. You’ll see a listing that includes lines like:  
`10/12/2019 11:38 PM 1,185,684 SPURGE~1.STL Spur Gear (48 teeth).stl`

Note the “SPURGE~1.STL” name in there. That’s the old 8.3 short filename. You may be able to delete _that_ instead of the long filename version.

---

<div class="post-metadata">

**Author:** ![Mortimus](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@Mortimus](https://boards.straightdope.com/u/Mortimus)\
**Post date:** [February 19, 2023, 4:02am UTC](https://boards.straightdope.com/t/how-do-i-delete-a-corrupt-zombie-file-in-win-10/980025/4 "2023-02-19T04:02:54Z")

</div>

Thanks, that gives me a few things to try, if those fail would there be any use in booting up with a linux live disc? I was never comfy with linux but I can probably muddle my way through it.

Good news is that I have multiple backups so if I hose something I’m not gonna lose any data.

---

<div class="post-metadata">

**Author:** ![LSLGuy](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/lslguy/32/5813_2.png) [@LSLGuy](https://boards.straightdope.com/u/LSLGuy)\
**Post date:** [February 19, 2023, 11:43am UTC](https://boards.straightdope.com/t/how-do-i-delete-a-corrupt-zombie-file-in-win-10/980025/5 "2023-02-19T11:43:41Z")

</div>

Here’s a long-shot idea.

Using CMD, navigate to the containing directory and do an `>attrib *.*`

That will list all the files and their attributes. You might also try `>attrib *.* /L` in the off chance that somehow you’ve got a symlink, not an actual file, on your hands.

It sounds like you’ve got the skill to interpret what you’ll find and solve your problem if this reveals any new / unexpected info. If not, post what you find and the rest of us will tackle it.

---

<div class="post-metadata">

**Author:** ![Mortimus](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@Mortimus](https://boards.straightdope.com/u/Mortimus)\
**Post date:** [February 20, 2023, 6:19pm UTC](https://boards.straightdope.com/t/how-do-i-delete-a-corrupt-zombie-file-in-win-10/980025/6 "2023-02-20T18:19:43Z")

</div>

Thanks @Dr.Strangelove, that did the trick! Also thanks to @What_Exit and @LSLGuy!

---

<div class="post-metadata">

**Author:** ![J-P\_L](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/j-p_l/32/3156_2.png) [@J-P\_L](https://boards.straightdope.com/u/J-P_L)\
**Post date:** [February 20, 2023, 9:04pm UTC](https://boards.straightdope.com/t/how-do-i-delete-a-corrupt-zombie-file-in-win-10/980025/7 "2023-02-20T21:04:32Z")

</div>

> [@Mortimus](#):
>
> Thanks @Dr.Strangelove, that did the trick!

If that worked, then it is likely that the long file name somehow acquired a none printable character that you could not see or input. That happened to me some time ago.

---

<div class="post-metadata">

**Author:** ![Whack-a-Mole](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/whack-a-mole/32/141_2.png) [@Whack-a-Mole](https://boards.straightdope.com/u/Whack-a-Mole)\
**Post date:** [February 20, 2023, 9:12pm UTC](https://boards.straightdope.com/t/how-do-i-delete-a-corrupt-zombie-file-in-win-10/980025/8 "2023-02-20T21:12:14Z")

</div>

I’ve always been a fan of FileAssassin.

---

<div class="post-metadata">

**Author:** ![Dr.Strangelove](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/dr.strangelove/32/6613_2.png) [@Dr.Strangelove](https://boards.straightdope.com/u/Dr.Strangelove)\
**Post date:** [February 21, 2023, 1:56am UTC](https://boards.straightdope.com/t/how-do-i-delete-a-corrupt-zombie-file-in-win-10/980025/9 "2023-02-21T01:56:21Z")

</div>

> [@J-P\_L](#):
>
> If that worked, then it is likely that the long file name somehow acquired a none printable character that you could not see or input.

Agreed. Especially since the Windows file APIs are littered with bugs when it comes to Unicode support. It would not shock me at all if it’s possible to have a filename with a special character that cannot be expressed (or converts to something wrong) when it goes though whatever file deletion API that it’s using.

Anyway, glad the trick worked!
