Technology in terms you understand. Sign up for the Confident Computing newsletter for weekly solutions to make your life easier. Click here and get The Ask Leo! Guide to Staying Safe on the Internet — FREE Edition as my thank you for subscribing!

Why Can’t I Delete this File?

Why can’t I delete this file?

It’s a fact that you can create files in Windows that
are almost impossible to delete using normal methods. Typically it’s the result of a hidden character in the filename – a
character that for various reasons can’t be seen and is difficult if
not impossible to type. And yet if you don’t specify the correct
filename including that odd character you can’t delete the file.

I can hear you asking “great, how did that character get there and
more importantly how can I delete the file?”

The answer to the first part is speculation but I was recently pointed
at a tool that will help with the second.

Become a Patron of Ask Leo! and go ad-free!

The biggest issue with invalid names is that not all programs filter out
invalid characters from filenames before they pass them on to the system.
For example, let’s say you happened to accidentally hit the spacebar
after the filename when you went to save a file. If the
application you’re using is not smart enough to strip trailing spaces
then it may well create the file with a trailing space. You may think and
see “FOO.DOC”, but Windows sees “FOO.DOC “. A subtle,
but important difference.

What’s worse is when you attempt to rename the file or delete the
file using a utility that then “does the right thing”, it
strips trailing spaces before it attempts to operate on the file. You type
in or select “FOO.DOC ” with a space and the utility takes it as
“FOO.DOC” without a space, tries to delete it, and fails because
that’s not the name of the file!

There are actually several scenarios that can result in files that seem
almost impossible to delete. Fortunately they are rare but they do

What to do?

If your file system is FAT or FAT32 or most instances of NTFS
you can use the old DOS “shortname”. In the days before Windows
filenames under MS-DOS could only be 11 characters long. For compatibility with old programs that relied on the 11 character limitation Windows creates a unique “shortname” for every long file name. For example, if
your file is named “thisisalongfilename.isntit” a DIR
in a command shell may show the shortname as
“THISIS~1.ISN”. It refers to the same file so you can delete
using the shortname.

In some cases using the command shell or using shortnames isn’t an
option. That’s a situation I found myself in some time ago. My disks
are formatted with NTFS, and I’ve explicitly turned off
“shortnames” for a little bit more speed. I had no way to delete
the file I’d somehow created.

I was recently pointed at delinvfile, short
for Delete Invalid File,
from Assistance & Resources for Computing, Inc. It’s a free Windows
program that uses standard controls for drives, folders, and files to
navigate to the folder and to select the file to be deleted. Push a button
and it’s gone.

It just got added to my little arsenal of handy tools I carry with me
wherever I go.

Do this

Subscribe to Confident Computing! Less frustration and more confidence, solutions, answers, and tips in your inbox every week.

I'll see you there!

118 comments on “Why Can’t I Delete this File?”

  1. My friend opened an e-mail on my computer with an attachment that led him to a web site that gave me a permenent virus. I now have files in C:\Documents and Settings\andersong\Local Settings\Temp, there are a bunch I can’t delete: ~efd3d2, ~f1d055, ~de46a7, ~df394b, ~efe2. It does not allow me to delete the files, it says “make sure the disk is not full or write-protected and that the file is not currently in use” I am not using it that i know of and i have no idea what the rest means. Please help.


  2. You didn’t indicate what version of Windows you’re running. If possible, reboot into “safe mode” and you may be able to delete the files. *Definitely* get and run a anti-virus program asap.

    Good luck,


  3. A little trick I use to delete files is:

    Go into Microsoft Word (yes the word processor) and click then go into the file type and select . Now browse to the files you want to get rid of and delete away. I do not know why this works. But it does.


  4. I tried this but it didn’t work for me I think I have a very special problem….
    once I moved downloaded files to another folder, one staid behind so I tried to move it again, than delete it and what I got was ‘can not delete the file, this file does not exist.
    I tried the tricks and fallowed the links but the file didn’t go away. I find it anoying to have an invalid file there that does nothing and won’t go away

  5. I’m having a major problem uninstalling limewire. It will not uninstall from add/remove just terminates while the unin. is just loading up. Also, when you look at the file size of the installer, its like 4,277 MB.
    Very strange.

  6. i have the same problem that the uninstall for LW stops before it really does anything; i had to just delete the .msi + setup.exe files (both ~5MB) as i had a problem w malware at the time. now i want to reinstall it + get error mssg 1714 – older version of LW installed????
    have searched for files called lime* + nil shows; have deleted 2 HLKM\\\uninstall keys relating to LW – no joy.
    as it’s the free verison there is NO online/mail suport from

  7. My sister was using my laptop and accepted a file from a friend. The file happens to be “alyssa’s pix.exe” and I can’t seem to delete it using your method. This “scary” picture shows up every hour or so… it’s getting on my nerves. Any other ideas?

  8. As i was passing by, looking for a file deleter, ive seen several problems where users are missing quite an obvious aspect of computing. So i took pity! 0.o

    MSconfig – One of the most valuable tools microsoft made :P

    Start > Run > Type msconfig

    A window will appear, providing you are running windows 98/2000/ME/XP

    This tool configures the startup of Windows, and what programs and/or applications start up. Not only can this solve some of your problems, it can speed up your PC greatly!

    When in this window, which can vary slightly, from version to version of windows, go to startup, and uncheck any boxes which look suspect. These files will then not startup again.

    This will definatly solve Catrinas problem, and posibly some virus problems. BUT definatly get a virus scanner. Also when files you think are not in use, but the message “Make sure the disk is not full or write-protected and that the file is not currently in use” this can be when files are running from startup, so uncheck these files in msconfig.

    Be VERY careful when using msconfig, because if you uncheck the wrong things, you may have startup problems. To find out whats safe and whats not, please feel free to contact me on

    Just as a little disclaimer here, im not responsible for misuse of msconfig, its just a help suggestions, i advise you use it with care, and if your not so hot with such things, an experienced computing friend.

    P.s Before some UbER Haxxor comes along and starts ripping it out of me for being a n00b, im not; just trying to help someone, which im sure is more than what i can say about you!

  9. hi.. I downloaded a game via the internet.. It didn’t work, so i tried to delete it but my pc said that it wasn’t possible because some program may be using this file.. Then I shut down all the programs but it didn’t work, it just said the same thing again.. What should I do..?

  10. HELP!!!!!
    Can you delete more than one message received at a time?

    I don’t know if you’ll be able to help me or not. On my Sprint PCS phone, I have Short Mail. I’ve questioned Sprint’s Tech guys and they tell me you have to delete these messages, one at a time. I have 270+ messages! I just won’t take no for an answer! When I receive a new message, I get notification which I then click “view” and it shows me a url addy. I click “go” and it takes me to my Inbox for Short Mail. I’ve tried to go to this url, and all parts of it on my computer, but I keep getting the same message, “Application Error, Please Re-login”. I’ve tried from a Mac & PC. Any suggestions?


  11. OK…, well i have read all of what the other people are saying and it all makes sense…

    I downloaded project and a rom for it off of lime wire!

    I know that it is wrong and that is why i deleted it…. or at least i thought.

    I realised later that some BAD files were left with it!

    I have been working on it now for like a month and i stillllll can’t delete it! I have tried MS-DOS and nortons wipe data…
    How ever i try to delete it (and I have tried many many ways!) i can;t get rid of it. I know that it is spyware and it is called aurora and nail.exe. I have nortons fire wall and it always warns me that these programs are trying to acess the internet and i always click no, but they always come back trying to acess it… i WILL continue to try to delete it, but whenever i do it says that the program is write protected or something and i am getting VERY DISCOURAGED…

    I am sooo confused and i could use all of the help that i can get!

  12. I cant seem to delete this file “ZLT03cd4”. It was in my TEMP folder in the C:\WINDOWS folder. I deleted the rest of the TEMP files that were around it because my anti-virus software was detecing that they were all viruses. Its weired because I will delete this other folder and it will keep coming back when I run ad-ware se. HELP Please!!!!

  13. The delinvfile thingy worked well for part of what’s been undeletable from my recycle folder, yet one file still remains. It was a movie, one I transferred twice. While one of the transferred files would not delete finally did delete with delinvfile, this other one wont.

    In normal viewing it seems as if it’s a single avi file, yadayada.avi. When I viewed both transferred versions through delinvfile thingy, I saw that each was a folder containing three files, an ico, an avi and another with the avi file for either being only 3 letters long, rather than the multicharacter name the file read through normal means. I could not delete the folders of either so I went inside of each. In one version I deleted eache file individually successfully, and having done that, was able to delete the folder containing them within the recyler bin. In the other folder, still residing in the recycler bin, I was able to delete all but the avi file contained in that folder, and I could not delete the folder either. I have rebooted the computer many times and dealt solely with the recyler bin each time, yet keep getting a message saying the file is being used by another process and refers to the file by the 3 digit avi file name rather than the long name it shows as in the recycler bing.

    Using conventional methods, I keep getting a message saying that the file is being used by another process. And while I had this problem yesterday, without using any other software or processes, my CPU is constantly running at 100% and “Explorer”, not “IE” is reaching as much as 200MB of use, whereas it’s usually anywhere from 20MB to 80MB.

    How do I disassociate this file from any other thingy using it, how do I trace what it may be associated with now?

    This problem is WASTING MY VALUABLE TIME!!!!!!


  14. I deleted panda antivirus and some of the files are still there and it won’t let e delete the files how do i delete them plz help

  15. Leo,

    You are the man! Short name delete from a DOS prompt wouldn’t work. delinvfile kicked its tail. word to the wise, don’t download 10-K web pages from the SEC. The filenames and links that are downloaded contain Greek or something worse that are impossible to get rid of without help from Leo.

  16. Leo ur the man! when i read ur top article it seemed to be different from my problem but it wasn’t! the posts nearer the bottom were like mine and so i thought perhaps it wouldn’t work. all i did was delete any spaces at the end and and dotsand it worked a treat! Leo is the man….long live Leo!

  17. Some how a 5sec mpeg movie clip got downloaded on my computers desktop. But when I try to delete it, it just says its being used by another person or program. It wont even let me rename the file to delete it. PLEASE HELP ME GET RID OF THIS DREADFUL FILE!! I’d really be ever so greatful if you could solve this problem for me. Thanks

  18. I’d start by finding out who’s using the file, and possibly ending that program first so you can delete it normally:

    IF that doesn’t work, I’d try rebooting in safe mode to see if you can delete it then.

    If *that* doesn’t work my approach would be to boot from a recovery disk or a stand-alone boot CD (an MS-DOS floppy, or perhaps Knoppix if you’re at all geeeky, for example) and delete the file from there.

  19. I want to say “THANK YOU” you have givin me closer to a really bad headache and this prog you forementioned is great a fake spy prog got on my pc and attached to some proccess i could not find for the life of me but one click and puff like magic thank you very much.

  20. HI, I installed Nero burning rom CD 3-4 months ago and all of a sudden it stopped working. it was weird because when i tried to uninstall it it wouldn’t fully unintall. then i tried deleting the Nero files from the drives. but when i went back to “add or remove programs” it says Nero media player cannot be found and Nerovision Express cannot be found. All i want to do is reinstall the program so i can Burn my movies. please help me…


  21. THANK YOU. MUCHAS GRACIAS. ARIGATO GOZAIMASU. And every other way of saying it. I started downloading some partial .avi by mistake and for the life of me couldn’t figure out how to get rid of it. Over the years I had found ways around problems like this (such as a few you mentioned) but none worked because right clicking only allowed me to ‘send to’ and a few other useless options. Since I couldn’t rename or simply select and delet it, I tried cutting and pasting it into the recycling bin; didn’t work. Tried drag and dropping it in the bin; didn’t work. But I downloaded that program, found the file, clicked delete and POOF! Problem solved. You have my thanks, sir.

  22. The SystemFileObject tool in the Microsoft Scripting Runtime component can create folder (and I suppose files) that have trailing spaces on the end, that are impossible to get rid of without the short name trick. Thanks Leo.

  23. Leo:

    i have tried everthing to try and delete this file but to no avail.The message i am getting is “File or directory is corrupted and unreadable” and when i tried the program you suggested a message pops up in my system tray to tell me to run chkdsk and i let it run and it says that there are no errors but the file is still there.
    I tried in safe mode and the same thing happens and i tried in a dos window and all is the same.
    Usually this would not bother me but it is causing my chkdsk to run at every boot.I also did a search in the registry and it finds the file and i deleted it there and when i restart and do another search in the registry it appears again. Please help if you can.

  24. Many video files (porn, to be honest) in Limewire end up being invalid files that are impossible to play, rename, delete, etc. once downloaded, and 9 out of the 10 ways I tried to get rid of a file of this kind failed. “Delinvfile” was the lucky charm, it works! Thanks for the spot-on advice!

  25. ive tried everything, my delete problem is different. when i move the mouse over the file a windows error comes up saying program must shut down, and then “My computer” window shuts down. i tried delvin and it says “error occurred at address” is there any information u could possibly give me to help me get rid of this file? it was downloaded offa limeware, and just refuses to delete. thanks.

  26. I have an incomplete folder for my Limewire downloads but, for some odd reason, everytime I try to delete all the contents of that folder it appears with a message saying “Cannot delete T1287~1.MPG: Cannot find the specified file

    Make sure you specify the correct pathand file name”

    This question may have already been asked but what should I do as I need a simple way to delete this?? Please help!

  27. Sorry I posted that last message. Thanks Leo for the information contained in this page. It was really useful to me. Especially the DelInvFile. This may sound like I am being sarcastic but I really am not doing that. Thanks so much.

  28. Delete Invalid File, from Assistance & Resources for Computing, Inc. is the hot tip. i had a torrent file, encrypted, and nothing would delete it. it was vexing me, just cause i couldn’t remove it, and god bless you leo, and the application you suggested…now i can sleep at night. =P

    thank you.


  29. Thanks, Leo. DelinvFile 2.01 works beautifully. Just cleaned my fileserver.
    I was even able to delete folders inaccessible due to user permissions by temporarily giving that user admin access on server, logging in as the user and running the delete folder utility again.
    I didn’t have to register or reboot!

  30. I downloaded what I thought was a pilates program on ares and it turned out to porn. I couldn’t delete it, move it, rename it or anything. It was driving me crazy. Finally I used DelInvFile and it worked perfectly so thank you.

  31. yeah, this thing is good…
    But it won’t delete every thing you want it to. It’s strange; I can try to delete a folder, but the folder remains stationary while ONLY the contents are deleted.

    Of course, that’s only some folders.

  32. when i try to delete a message i get this (the folder deleted messages is corrupt and can not be reconstructed) oh yes i have a mac can u help me thank you bernice

  33. I used DelInvfile, but it was still unable to delete the folder Documents and Settings on C (I have installed new Windows on D without format C). It said access is denied. I cannot unset the attribute.

  34. I read a whole bunch of other help sites on the net, but this one was the only one that actually worked. DelInvfile is a lifesaver. Thanks Leo!!

  35. I would like to remove links on/in my favorites
    file or what ever it is called.

    I wish to know how to remove links from my Favorites that I no longer want. Nothing fancy
    just point and click. I do not wish to delete
    everything. I know how to delete perse,
    but not from


    How do I delete a link or line from MY FAVORITES?
    I do not wish To loose the whole listing. I have
    some that I no longer require. Thank You


  36. Accidently downloaded a file off of a download list in my P2P program. Apparently, the file had an outrageously long file name and Windows XP couldn’t delete it for me.

    I was brought here thanks to a friendly help site, downloaded the DelInvFile tool mentioned in the article, and it got rid of the pesky file like a charm! Thanks! Nice find by the way!

  37. Recently I had a similar problem. A file with indeed long name. I could not deleted, copied,renamed,…. nothing seem to be done.Not from safe mode nor command prompt with wild cards . It stood there for a couple of weeks. Then I had this idea. I moved all other files I needed to another folder and left only the corrupted one. Then deleted the container folder which worked for me. Renamed the new folder to the deleted one.
    P.S. This only works assuming the file is into some folder that CAN be deleted.(not a system one or the root directory).

  38. Thanks for the tip. I love PurgeIE, didn’t know they had this utility. It did what TEN other programs claimed to be able to do, but failed miserably: Delete That Damn File! I love you hard-to-spell DelInvFile.

  39. Thanks so much. Really long file name would have been the last thing i suspected with these pesky files from p2p programs, there were hundreds of spaces after the name. Well thanks for saving me!

  40. great hint to delinvfile. found before a lot of really weird tips how to delete however this little thing s perfect. got myself a license to be prepared for the next case. tx leo

  41. Wow! I was in that unlucky situation that ive got a virus from a email that placed 3 pictures on my Desktop with invalid names, which i couldn’t delete. I searched a little on google, and then i found this. I read about it and it did sound like a program that could solve my problem. I downloaded it and tried it out. It worked! I had tried like 3 other programs such as Dr. Delete. Same message from there: Invalid filename. But now it’s gone! Thanks for the tip!

  42. I downloaded a file from limewire that had no valid extension, would not allow me to see its properties, and would not open. Obviously, it also did not allow me to delete it. I downloaded this software, and I was able to easily get rid of the file. Thank you so much, you really came through!!

  43. Thank you!! I’ve been trying for months to get rid of these 3 files my nephew downloaded when he visited & nothing worked until I tried this. Thank God they’re gone (& next time he visits I’m hiding my laptop!)

  44. I had a JPEG image which was downloaded from a program to my desktop and I could not delete it.I even right clicking it did not give me the option to delete or show properties.I tried deleting the file through the search option but it did not do anything.I have also tried other ways suggested by
    information on bulletins.Then I found this,tried it,sure enough it worked.Thank you for this program and for helping others with their pc problems.

  45. Thanks Leo! I went through about half a dozen other tips before coming across yours. It worked like a charm the first time.

  46. I downloaded to jpeg files from limewire and they will not rename or delet no matter what I try is this whay I should use I tried the free version it I cant figure it out or get it to work I NEED HELP!

  47. I hate repeat what everyone is saying, but this is a really great little app. I tried several solutions including using the command prompt to delete the file using a short name, but nothing was working. This program is absolutely fantastic, where on earth did your friend find this?

  48. Just a note for your many readers.

    I recently released DelinvFile 3.01 which includes a “Scan” function. You can now search for invalid file names, invalid folder names and too-long file+path names.

    The new version can delete a greater variety of invalid files and folders than prior versions.

    Note that DelinvFile is no longer a free program but that the original delete functions and the new Scan functions are free to use. Registration is only required for advanced functions.

  49. Thankyou for your tip and link to DelinvFile. After all avenues were exhausted (for a computer illiterate), the easy to use software deleted those stubborn files, and actually saved my sanity. Its like a load was lifted.

    with so much conflicting advice regarding those files that resist moving, renaming, deleting, and after installing several deleting programs that didnt work, I am glad I perservered and found your site.

    thanks again Leo

    your blood is worth bottling.


  50. totally awesome !!! thanks mannnn…what would the world be like without people like you!!…
    also, to Larry (about limewire)..the same thing happened to me, and this program fixes the prob really easily :D..

    Thanks again!


  51. Thank you so much for this information! I had transferred a folder from a Mac to our Windows 2003 file server. Unfortunately, somehow the folder name got a trailing space at the end. The result was that the folder had no permissions tab. Whenever I opened it, as soon as Windows Explorer had loaded file information, it would close. I tried to access the folder via a command prompt, but it told me the file was not found. Using tab completion, I noticed that there was a space at the end of the folder name, “My Folder “. Based on the information you provided, I tried the following: I opened a command prompt and went to the containing folder. I issued the command, rename myfold~1 “My Folder”. Viola! It’s all better now! Thanks for pointing me in the right direction.

  52. This program may work for some, but for me it’s completely useless. You aren’t allowed to select the Desktop to delete a file and the problem is the file I need to delete is on my desktop so I have no use whatsoever for this tool. Complete waste of time.

  53. Thanks for the tips. They gave me enough help to be able to delete a series of directories that had names consisting only of spaces! Worryingly these were in an old ftp root directory.

  54. err, yer! This software does jack for my problem. It doesn’t find the problem file at all. I can’t delete a file using ANYTHING so far. Five programs in and still got it sitting there in My docs folder. THIS PROGRAM NOT GOOD FOR ME THEN!!!!!

  55. Finally! Those two folders have been sitting on my desktop for a few months and I can finally get rid of them! Thank you!

  56. Malewarebytes [free anti-spyware from the usual download repositories] has a ‘FileASSASSIN’- which would work well here. In fact, I’m mid way through clearing up a dozen such uncooperative files. Thanks for your leads too. What on earth crawled up those people who posted above? Phew! You’d think you told them to invest in SubPrime.

    Keep up the good work, Leo.


  57. Thanks, but how to make the different way ? imean I want make some autorun at usb flasdisk wich is can’t be delete or even format it.

    Could you help me to give some advice


  58. Thanks for the infomation, should update your info, program is not free, (DelinvFile) Hate to spend that much to delete just one file. Some good info on your site.

  59. After alot of pain this worked for me for a file on a CD with a trailing space.
    1. dir /x
    2. Find short filename for messed up file, Ex. “PLATT~92.QXD”
    3. xcopy PLATT~92.QXD c:\quark\test.qxd /N
    4. Now the file is on your drive with a valid name that you can change to what you need.

    Hope this helps someone.

  60. Ok people,
    wanna share with you how i got rid
    of that stubborn obnoxious piece a crap.
    The stubborn file i had was ones with :

    ^**@%@%#$^$#&#$&#$^%@%!@!$ crap like that
    and they were more than 200 characters long.

    I know how annoying and frustrating it is to have that
    crap sit there like a statue, when you want it gone. Tried for
    close to 8 weeks figuring out ways to remove this thing,
    tried everything on the web not just google,
    yahoo, msn literally EVERYTHING.Actually i’m not
    too sure if reformating works , but i didnt reformat
    because had too many files backedup and had
    no place for extra storage.However none of the above methods,
    worked.All the information in the forums
    like using the commands to delete,renaming,delinvfile or any other
    things didnt work for me.Infact i know how troubling
    this is , i wanted to help everyone out there.

    Here’s what to do:
    1)download unlocker :
    unlike the other softwares i tried, this virus free software
    is FREE and most importantly IT DELETES THE CRAP.

    2)After installation, right click on the file you wanna delete
    press unlocker,and when it launches, there’s a small tab at the lower
    left of the menu, which allows you to choose delete.
    Click delete.
    It will say file cannot be deleted, system has to restart to delete the file.
    What it actually means is that file wont be deleted on the spot,
    you need to restart in order for it to be gone, SO DONT REMOVE UR HARDDISK!!

    3)When you’re about to restart DONT REMOVE YOUR EXTERNAL HARDDISK,

    4)Check if the file’s deleted upon restarting

    5)Enjoy and heave a sigh of relief :P

    Hope this helps someone :), all the best!!

    Oh and by the way unlocker helps alot in terms of
    like say you have trouble removing your external harddisk.
    Say if you’re in a hurry and need to catch a bus, but your harddisk just
    cant be safely removed, unlocker
    helps you to close all programs, just unlock all, or kill all processes.
    Follow the same procedure, at my computer, right click on the drive you wanna end safely,
    and then click unlocker. Then just unlock all or kill all processes.

    That would come handy after you have disabled this 2 functions
    that maybe allowing explorer to access all your external harddisk
    files thereby preventing safe removal.


    1)Under classic view, go to back up and restore,
    Click create a restore point at the left hand corner,
    uncheck all the boxes under available disks and click

    2)Under classic view, click indexing options, then,
    modify, than check if all boxes are unchecked.

    With that said, next time when you wanna remove your
    harddisk safely, also not forget to make sure you have all the
    windows closed, and you’re facing only your desktop.

    Oh yea and by the way if it works, you can thank me at [email address removed] :):) ciao!!

    Shameer G.D.

  61. Removing a Windows file is easy, once you figure out what the file is and where it is located. I use this procedure all the time for my wife, who is unwilling to learn a different operating system.
    1. Boot the system from a CD with a live Linux distribution such as Knoppix, Fedora or Ubuntu.
    2. Mount the Windows filesystem in Linux, which has no problem reading and writing Windows filesystems.
    3. Delete the file with the command “rm “.
    Of course, it’s not quite that simple, and you need to know that removing the file won’t corrupt Windwos so that it won’t run, but once you learn a little Linux, it’s easier than all the crap you have to go through trying one program after another in Windows. Or you can avoid these problems entirely by using Linux, which these days comes with extensive driver support, easy installation, and an OS more stable and faster than Windows. Oh, and it’s free for download, of course. Some very good distributions are Knoppix, Fedora 9, Ubuntu 8.04 and OpenSuse 11.0.

  62. oh God,, there are 100 comments for this Post. I do not think my comment would matter much,, haha,, But wow thanks for solving my problem..And I must say I discovered a new tool .. wow it works great,,

  63. Read all the comments (on this and other websites) and can’t find mention of this solution. Reboot in Safe mode – use Explorer to go to the file, select and delete. This has always worked for me!


    Unlocker WORKED!. After weeks and weeks of struggle – and I am not a newbie when it comes to Windoze crap. MOveOnBoot did NOT work, unlocker did! I’m sending him a donation!


  65. When I go to ‘folderoptions’…oin school or home computer, I find out I cant change some files function its like it cant be highlighted what makes some commands unable to be highlighted?

  66. My problem was that with my file buried about 15 folders deep the combination of these folders and the file name they combined exceeded the max file length. I just had to rename the folders to something short until I got under the max length and then I could erase that file.

  67. I have figured out that by corrupting the file it will delete. I corrupted the file by opening it in Notepad and then deleting some of the characters. I may not work with all files but it worked for me on a video file.

  68. Sir,
    In my laptop Operating system is windows XP.
    When i change my operating system windows 7,i can’t delete that Windows Xp file.
    What I Do????

    Depends on how you “change my operating system to Windows 7”. A reformat and reinstall, my recommended approach, removes XP completely.


  69. Well Leo, a final comment at the end of this year (2009). It seems that your blog is so populair, that when you point out a nice freeware tool like delinvfile, the respons is giving the creators some dollarsigns in their eyes. The same tool now sells for USD $ 26,95. So this freeware has become ‘be aware’-ware. Unlocker v1.8.8 is still free (and works on Vista) and I also use Eraser for secure wiping.

  70. I had a file on my computer that was most likely the result from a corrupted downloaded file which I could not delete (my system locked-up in the middle of a download and I had to restart the PC).
    I tried changing it’s name, tried changing its attributes (read only). I tried to delete it using command line but I kept on getting “File can not be found” messages even though Windows attributes showed it to be 15.7 MB, it seemed as if nothing would work.
    Then I came upon someones suggestion to download Ubuntu (8.04) and burn the iso to cd and create a bootable CD version.
    I did and then restarted my PC into Ubuntu and from there went to “places” and found the file I wanted to delete. I sent it to Ubuntu’s trash and then emptied the trash and my problem was solved.
    A simple and FREE solution to a frustrating problem.

  71. sir
    i had a photo impact 12 i created a files with UFO extensions and know i cannot delete these files …. my computer’s windows is win 7

    when i tried to delete these files the delete process hanged then i see a window with three choices … they are ( close window or keep working or …..)

    what can i do ?
    please somebody help me!!!

  72. Leo and Co.

    You can also use the “Process Explorer” from Sysinternals to kill the DLL/Handles. I had a Zip archive that refused to be deleted because the handle was frozen. I killed it, and away it went! All you have to do is search for it.

  73. I remember a problem I had many many moons ago.
    A game I played under DOS asked you to name your saves, and once just to see what happened, I named the save “ha ha ha”.
    This caused immense problems, because the game actually called the file that, and DOS would read as far as the first space, and stop.
    So, DOS couldn’t find the file. So the game couldn’t find the file. And the file was undeletable (because DOS couldn’t find it).

  74. Being a Realtor, I’m used to typing abbreviations for things like St., Dr., Rd., etc. Well, after two years of trying to delete a file I noticed the “.” at the end. This was the reason it would not delete as windows was looking for something like “com or exe” after the “.” and never found it. Went into DOS, renamed the file, and it deleted just fine after that. Be careful of the evil “.”!

  75. I have cracked this challenge for, say, “MyFile.doc “, by using
    C:\ReName MyF*.* MyF*.doc

    But BEWARE !

    I had a file rid of which I COULD not get. It was at the end of a long path, with no other files, but I just COULD not delete it.

    One day I set to, and eventually succeeded.


    For it was cross-linked, and I lost my entire MyPictures folder, and CHKDSK converted the contents into SEVENTY THOUSAND separate files !

    I still have that hard disk untouched since then – does anyone know how I can retrieve any of the files ????

  76. Thanks, Leo….
    I had a problem with a file which i couldn’t delete. A file that makes my processor to work slow. By following your instruction, the file has been deleted and my problem has been resolved…
    thanks again dude!…


Leave a reply:

Before commenting please:

  • Read the article.
  • Comment on the article.
  • No personal information.
  • No spam.

Comments violating those rules will be removed. Comments that don't add value will be removed, including off-topic or content-free comments, or comments that look even a little bit like spam. All comments containing links and certain keywords will be moderated before publication.

I want comments to be valuable for everyone, including those who come later and take the time to read.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.