How-to: Delete Undeletable Files
Posted by Jon Lee in How-to, tags: delete, How-to, tips, undeletable, Windows
This bugged me for a few weeks before I found a solution. I was creating a file through FireFTP but Firefox crashed in the middle and the file was “half-created”. It exists on the Windows desktop as an empty file but it did not seem to fully exist on the hard drive. It just sits there on my desktop titled “i dont have 8gb free” teasing me because it knows I can’t get rid of it.
When I tried to delete it I got an error message:
Cannot delete file. Cannot read from the source file or disk.
So I know the file isn’t in use by any processes — the computer actually can’t find the file I’m referring to!
Here are things I tried and failed:
- Deleting through command line.
- Changing file permissions.
- Renaming the file (same error as above).
- Overwriting the file from different programs.
- Rebooting in safe mode and deleting from there.
- Booting into a Linux Live CD, loading up the NTFS drive reader to access the file.
- Clearing processes that may have been using the file.
- Running full spyware and virus scans.
I was at my wit’s end and about to install some shady third party application when I came across a solution on a newsgroup post:
The solution was simple, using the del command in a command prompt. I had tried this already of course but the trick was to not refer to the file by it’s full name, rather, refer to it by its 8-character “DOS name” also known as the 8dot3 file name. To find the 8dot3 file name, open command prompt and type:
dir /x
Note the 8 letter file name (most likely ending with ~1) and use the del command to get rid of it for good.
del idonth~1
I remember using 8dot3 names in DOS and older versions of Windows but it never occurred to me that this would make any difference when deleting files. Anyway, I’m glad I didn’t have to reinstall Windows just to get rid of this one immutable file sitting on my desktop! Hopefully this will help some of you in the future.
Popularity: 11% [?]
Entries (RSS)
Thanks for that one, computers can be downright weird sometimes, scary weird.
I face the same problem so many times. Even while downloading, if the downloading a software does not happen properly and it’s like half downloaded it gives so much trouble. Then nor does that file get deleted completely and when you want to do a fresh download that file becomes a big hindrance.
Great advise that came at a very important time. Thanks for the post.
I think I’ve gotten that problem before, weird stuff.
Good solution + nice find
Thanks for sharing
Thanks for the tip. Should be a big help to a lot of us.
It is really excellent idea. It seems can do the work smoothly. Thanks a lot.
[...] it comes with anything concerning a computer, both online and offline, so this week he talks about how to delete undeletable files. Ever encounter a file on your computer that Windows just won’t let you remove? Be frustrated [...]
Really great idea. I’ll stash this post in the inner parts of my mind for future reference.
ha..ha..ha.. I am happy you now the way to solve it, it sometimes bother when we caouldnt delete the file that we want to dissapear, well it is not cost our lives but still annoying.
thanks dude. small favor for “big” routine problem
Really, thanks for this post! Computers can make you feel like killing yourself…
THANK YOU! This was driving me crazy!
AMAZING! It worked like a charm, seriously! Thank you so much.