HOW TO: Delete an Undeletable or Locked File


----------------

Have you ever run into a situation where you wanted to delete a file, but Windows simply wouldn’t allow you to do it? Personally, these things happen to me all the time, especially when I’m at a client’s house trying to get their machine clean of malware. Have you ever tried deleting a locked file using common windows commands? If so, then you’ll know that this is just not possible.

The main reason behind this is that the explorer.exe process locks files that are in use, effectively preventing you from deleting them. Usually, these files should not be touched, but sometimes, situations arise when you really need to erase some troublesome ones.

Fortunately, there are a few easy solutions to delete those files.

Solution #1: Kill explorer.exe

  • Open a command prompt
  • Navigate to the location where the locked file is
  • Press CTRL-ALT-DEL, click on “task manager”, select the Processes tab
  • Kill the explorer.exe process via the “End Process” button
  • Go back to the command prompt and delete the file
  • Bring up the task manager windows again
  • Select file->new task
  • Type explorer.exe in the “create new task” field
  • Press OK.

Solution #2: Use The Windows Recovery Console

Just stick your Windows CD in your CD tray, boot on it, and at the “Welcome to Setup” screen, press “R“. Once the recovery console has started, navigate to the location of your locked file, and delete it. Since WRC does not really start the system, the files will not be in use, and you will be able to delete them. Oh, and for all you Linux geeks out there, yes, we know, doing this via a linux live CD / USB key is also possible.

Solution #3: Use unlocker

Unlocker is a very useful freeware that will allow you to unlock any files that are currently in use by Windows. You’ll know if this is happening if you are getting any of these messages when trying to delete a file:

  • Cannot delete file: Access is denied
  • There has been a sharing violation
  • The source or destination file may be in use
  • The file is in use by another program or user
  • Make sure the disk is not full or write-protected and that the file is not currently in use

Unlocker will make things right again for you.

You’ll notice that right after installing the software, a new option named “unlocker” will appear when right clicking any files or folders in Windows Explorer. To unlock a locked file, just right click it, select unlocker, and the unlocker software will start. Then, click “unlock all” and close the software. Now that your file is unlocked, just delete it in Windows Explorer, as you always do. This is much simpler than solution #1 or #2, isn’t it?

I hope these three solutions will help you get rid of those hard to delete files!







264 Responses to HOW TO: Delete an Undeletable or Locked File

  1. 4. Boot with a live cd, and mount the drive. cd to the drive (probably /media/disk) and then to the folder where the file is. sudo rm

  2. I've been using unlocker for a couple of years now. It is always one of the first programs I install when I do a new installation.

  3. 4. Boot with a live cd, and mount the drive. cd to the drive (probably /media/disk) and then to the folder where the file is. sudo rm

  4. The easiest way though, which requires no tools at all, is to simply rename the file and reboot. I'm not sure whether Explorer allows you to rename files that are in use, but Total Commander does, and without whining too, and I would guess the command prompt would be equally accomodating.

    • If you reboot, the file will unlock whether you use any tools or not. ;)

      I think the purpose is to save having to reboot. :)

      • That's not necessarily true. Sometimes programs that run at startup or malicious software may be using the file even after a reboot.

        • Yeah, exactly.. I was about to tell that to bucky.

          Even if you boot in safe mode or select "command prompt only".. the file will be locked.. that's when these techniques come in handy.

    • renaming did not work for me.rebooting did not either. It says the action can't be completed because the file is open in windows explorer.

  5. I’ve been using unlocker for a couple of years now. It is always one of the first programs I install when I do a new installation.

  6. The easiest way though, which requires no tools at all, is to simply rename the file and reboot. I’m not sure whether Explorer allows you to rename files that are in use, but Total Commander does, and without whining too, and I would guess the command prompt would be equally accomodating.

  7. The easiest way though, which requires no tools at all, is to simply rename the file and reboot. I’m not sure whether Explorer allows you to rename files that are in use, but Total Commander does, and without whining too, and I would guess the command prompt would be equally accomodating.

    • If you reboot, the file will unlock whether you use any tools or not. ;)

      I think the purpose is to save having to reboot. :)

      • That’s not necessarily true. Sometimes programs that run at startup or malicious software may be using the file even after a reboot.

        • Yeah, exactly.. I was about to tell that to bucky.

          Even if you boot in safe mode or select “command prompt only”.. the file will be locked.. that’s when these techniques come in handy.

  8. I use something called dellater. It’s a command line program, but it gives you a Windows dialog box to confirm the deletion. It will require a reboot to actually do the deed, but there’s no installation, and no fiddling with CDs either.

  9. I use something called dellater. It's a command line program, but it gives you a Windows dialog box to confirm the deletion. It will require a reboot to actually do the deed, but there's no installation, and no fiddling with CDs either.

  10. Download Process Explorer from sysinternals Press Ctrl+F and search for the filename which is locked. Once found, close the handle of that file.

    Now you can delete it.

    • Exactly what I needed! I agree that there's no need to restart 'explorer' or do other crap when the real solution is to release the file handle owned by a specific process.

      Author of Original Article, Please update the article to include the Sysinternals way of releasing file locks!

  11. Download Process Explorer from sysinternals Press Ctrl+F and search for the filename which is locked. Once found, close the handle of that file.

    Now you can delete it.

  12. Unlocker rocks! It also works great when Windows won’t let you unplug a USB device. I had a USB hard disk that would never release. I ran Unlocker and noticed that mim.exe was locking it. mim.exe is part of Musicmatch which I don’t use.

  13. Unlocker rocks! It also works great when Windows won't let you unplug a USB device. I had a USB hard disk that would never release. I ran Unlocker and noticed that mim.exe was locking it. mim.exe is part of Musicmatch which I don't use.

  14. Unlocker is great. But I still want to find a way around the problem of not being able to safely remove USB devices. No file handles open on the device, yet Windows still says something is using it.

  15. Unlocker is great. But I still want to find a way around the problem of not being able to safely remove USB devices. No file handles open on the device, yet Windows still says something is using it.

  16. The REAL bitch comes from NTFS streams… You can't even easily delete the buggers when booting off a loader disk.

    If anyone has a quick and dirty cure for those damn things, I'll bake you a pie!

    • One file was giving me fits, so I just downloaded Unlocker 64-Bit. It said there was no locking handle but gave me the choice to delete or rename it. So I renamed it and it worked!
      Good Luck

  17. There is much more elegant way to deal with the problem. Locked file means some process uses it. Get Sysinternals Process Explorer from . This great utility (which is a free and better replacement for Windows Task Manager) has a find file handle tool which will show you the process locking the file. Then you can decide what to do: gracefully close the process, kill it or may be leave the file locked.

    BTW even if the file is locked by Windows Explorer you don't have to restart – simply kill Explorer in the Task Manager and run it again.

    • dear sir,

      I am facing a problem of undetabble files.after reading your message, i downloaded sysinternals process explorer. will you please guide me how to use this to remove/delete the unwanted files?

      thanking you,

      Sundar

  18. Pingback: mandmspace.com

  19. Pingback: Bilal Ak?ay Weblog » Bu dosya ba?ka bir uygulama taraf?ndan kullan?l?yor!

      • obviously you’ve never used the command line.

        permissions are different in cmd. rename the file. then delete the renamed file. works about 80% of the time. after that you can go to the more labour intensive solutions.

        But why mess with all that for the easy ones?

      • obviously you've never used the command line.

        permissions are different in cmd. rename the file. then delete the renamed file. works about 80% of the time. after that you can go to the more labour intensive solutions.

        But why mess with all that for the easy ones?

  20. Solution #4: Share the folder where your file is located in a LAN shared with Macs and have a Mac delete the file :P

  21. Solution #4: Share the folder where your file is located in a LAN shared with Macs and have a Mac delete the file :P

  22. There is much more elegant way to deal with the problem. Locked file means some process uses it. Get Sysinternals Process Explorer from . This great utility (which is a free and better replacement for Windows Task Manager) has a find file handle tool which will show you the process locking the file. Then you can decide what to do: gracefully close the process, kill it or may be leave the file locked.

    BTW even if the file is locked by Windows Explorer you don't have to restart – simply kill Explorer in the Task Manager and run it again.

    • dear sir,
      I am facing a problem of undetabble files.after reading your message, i downloaded sysinternals process explorer. will you please guide me how to use this to remove/delete the unwanted files?
      thanking you,
      Sundar

  23. Pingback: ????“???”??? - ????

  24. Pingback: geekMethod.com - Weekly tech, internet, computer and social geek podcast » Blog Archive » Podcast 32 - This side forward, fool

  25. Pingback: 2007 June 07 | Mansoor Nathani's Blog

  26. I use Unlocker and Process Explorer, as mentioned above… Also look for a program called OpenedFilesView. It also shows open file handles, which you can select and close, or kill the process that has it open.

  27. I use Unlocker and Process Explorer, as mentioned above… Also look for a program called OpenedFilesView. It also shows open file handles, which you can select and close, or kill the process that has it open.

  28. Pingback: Steve Miller’s Web Sites of Interest » links for 2007-06-08

  29. wow! I CAN’T believe no one mentioned CACLS.
    if there is a file you cannot delete
    open the command prompt go to the folder that it is in,
    type

    cacls /t /p everyone:n

    then hit enter it will tell you it processed the file then reboot the computer and you will be able to delete it.

    you can cacls as many files as you want before the reboot.

    all this does is lockdown the file so that it cant start after reboot.

  30. wow! I CAN'T believe no one mentioned CACLS.

    if there is a file you cannot delete

    open the command prompt go to the folder that it is in,

    type

    cacls /t /p everyone:n

    then hit enter it will tell you it processed the file then reboot the computer and you will be able to delete it.

    you can cacls as many files as you want before the reboot.

    all this does is lockdown the file so that it cant start after reboot.

  31. Pingback: blog.NiallOK.com - Niall’s Blog » Blog Archive » Crunchy Links - June 8th 2007

  32. Pingback: TechTear :: T_T :: Blog Magazine de Tecnologia » Elimina archivos bloqueados con Unlocker

  33. Pingback: Bookmarks Roundup « lab111 — Blog

  34. Pingback: I’ve been Lifehacked! » Swedegeek’s Blog

  35. Non command line file deletion w/o using explorer:
    Open taskmanager>kill explorer>run: iexplore >browse for file and delete it>run explorer

  36. Non command line file deletion w/o using explorer:

    Open taskmanager>kill explorer>run: iexplore >browse for file and delete it>run explorer

  37. Pingback: 42daze » Blog Archive » Delete a File Currently in Use

  38. thanks people it really helped a lot a file was bugging me to death and yur comments helped to do it via that software unlocker 1.85
    really thnx!

  39. thanks people it really helped a lot a file was bugging me to death and yur comments helped to do it via that software unlocker 1.85

    really thnx!

  40. Would this method work for copying uncopyable files? I tried it but to no success but it seems the method should work.

  41. Would this method work for copying uncopyable files? I tried it but to no success but it seems the method should work.

  42. Well how about this. Trying to defrag a disk and the operation stops with the statement “Defrag stopped because of a bad file c:System Volume Information_restore{94887…).exe”. Going to Cmd Prompt and bring up the directory c:SVY there are no files in the folder. The directory only shows the two system entries with no volume. What kind of an answer is there to that situation?

  43. Well how about this. Trying to defrag a disk and the operation stops with the statement "Defrag stopped because of a bad file c:System Volume Information_restore{94887…).exe". Going to Cmd Prompt and bring up the directory c:SVY there are no files in the folder. The directory only shows the two system entries with no volume. What kind of an answer is there to that situation?

  44. Hi,

    I have a very tricky piece of spyware that attached itslef to explorer.exe and winlogon.exe
    It’s not a problem to unlock it from explorer, but if winlogon.exe is killed, the computer shuts down immediately. I tried using unlocker, but like I said, the computer just shuts down immediately.

    Any other suggestions?

    • joebobthedole. To fix your problem do this. First back everything up to USB stick or DVD’s, then get a kubuntu liveCD and boot off it, use the “install” icon in the GUI you’re presented with and run through the wizard that appears, then finally reboot and the spyware is gone for good.

    • try< this it worked wd me one of our intelligent friend suggested it

      wow! I CAN’T believe no one mentioned CACLS.
      if there is a file you cannot delete
      open the command prompt go to the folder that it is in,
      type

      cacls /t /p everyone:n

      then hit enter it will tell you it processed the file then reboot the computer and you will be able to delete it.

      you can cacls as many files as you want before the reboot.

      all this does is lockdown the file so that it cant start after reboot.

  45. Hi,

    I have a very tricky piece of spyware that attached itslef to explorer.exe and winlogon.exe

    It's not a problem to unlock it from explorer, but if winlogon.exe is killed, the computer shuts down immediately. I tried using unlocker, but like I said, the computer just shuts down immediately.

    Any other suggestions?

    • joebobthedole. To fix your problem do this. First back everything up to USB stick or DVD's, then get a kubuntu liveCD and boot off it, use the "install" icon in the GUI you're presented with and run through the wizard that appears, then finally reboot and the spyware is gone for good.

    • try< this it worked wd me one of our intelligent friend suggested it

      wow! I CAN’T believe no one mentioned CACLS.

      if there is a file you cannot delete

      open the command prompt go to the folder that it is in,

      type

      cacls /t /p everyone:n

      then hit enter it will tell you it processed the file then reboot the computer and you will be able to delete it.

      you can cacls as many files as you want before the reboot.

      all this does is lockdown the file so that it cant start after reboot.

  46. Ok, I have an undelable file on my desktop. I have ran unlocker, MoveOnBoot and command prompt. Still can’t get rid of this file. It is a gif file
    Any help????

  47. Ok, I have an undelable file on my desktop. I have ran unlocker, MoveOnBoot and command prompt. Still can't get rid of this file. It is a gif file

    Any help????

  48. sometimes when decompresing a large file made out of several winrar files… winrar freezes and your only option is to end the winrar process by bringing the task manager. the problem is that sometimes that leaves a big 800 meg file that is corrupted and windows doesn’t let you delete. My solution is to create a text document on your desktop, then rename the new text document exactly as the corrupted file
    and then drag this new file and overwrite the corrupted file. this solution also works sometimes with files that windows won’t let you delete or move from one folder to another.

  49. sometimes when decompresing a large file made out of several winrar files… winrar freezes and your only option is to end the winrar process by bringing the task manager. the problem is that sometimes that leaves a big 800 meg file that is corrupted and windows doesn't let you delete. My solution is to create a text document on your desktop, then rename the new text document exactly as the corrupted file

    and then drag this new file and overwrite the corrupted file. this solution also works sometimes with files that windows won't let you delete or move from one folder to another.

  50. YOU ABSOLUTE STAR!!!!! Ordyner, you are a genius!

    I had two files on my server (w2k3) which, if I tried to do ANYTHING with (right click, hover over, delete, view properties – even del through cmd) it would BSOD! I’d tried serveral repair tools to no avail.

    Who would have thought that just copying a non-corrupt file over the top would work!!! It did though, and thank you soooo much :)

    Joff
    (sorry for using so many exclaimation marks btw)

  51. YOU ABSOLUTE STAR!!!!! Ordyner, you are a genius!

    I had two files on my server (w2k3) which, if I tried to do ANYTHING with (right click, hover over, delete, view properties – even del through cmd) it would BSOD! I'd tried serveral repair tools to no avail.

    Who would have thought that just copying a non-corrupt file over the top would work!!! It did though, and thank you soooo much :)

    Joff

    (sorry for using so many exclaimation marks btw)

  52. Try CACLS from the dos prompt.
    Be careful thou, It changes the access rights to the file.
    Try:
    c:cacls “” /e /g :F
    is fully qualified path. e.g “c:windowsafile.sys”
    is you windows username.

    To Reset the permisions try:

    These are all the switches for the CACLS command

    /t Think of the ‘t’ as meaning trash the original security permissions.

    /e Think of the ‘e’ as CACLS inviting you to edit. Alternatively think of ‘e’ for append or correct one that went wrong.

    /g This is the main switch, ‘g’ means grant; as in: grant me the permissions. This switch requires a user, followed by a colon and letter for the permission. Here are two examples:
    /g guyt:f full control for guyt.
    /g freddy:r read only for freddy.

    /p Almost the same as /g. CACLS /p replaces where as /g appends.

    /r Revokes, removes a named user from the Access Control List. Classic usage would be /r users.

    /d ‘d’ stands for deny. Remember that if deny the users group the result is that nobody is able to see the files, so use /d sparingly.

    /c ‘c’ is for continue. This switch works for CACLS like, ‘on error resume next’ works in VBScript. Adding /c says to CACLS, ‘Carry on despite an error’.

    Be careful !!

  53. Try CACLS from the dos prompt.

    Be careful thou, It changes the access rights to the file.

    Try:

    c:cacls "" /e /g :F

    is fully qualified path. e.g "c:windowsafile.sys"

    is you windows username.

    To Reset the permisions try:

    These are all the switches for the CACLS command

    /t Think of the 't' as meaning trash the original security permissions.

    /e Think of the 'e' as CACLS inviting you to edit. Alternatively think of 'e' for append or correct one that went wrong.

    /g This is the main switch, 'g' means grant; as in: grant me the permissions. This switch requires a user, followed by a colon and letter for the permission. Here are two examples:

    /g guyt:f full control for guyt.

    /g freddy:r read only for freddy.

    /p Almost the same as /g. CACLS /p replaces where as /g appends.

    /r Revokes, removes a named user from the Access Control List. Classic usage would be /r users.

    /d 'd' stands for deny. Remember that if deny the users group the result is that nobody is able to see the files, so use /d sparingly.

    /c 'c' is for continue. This switch works for CACLS like, 'on error resume next' works in VBScript. Adding /c says to CACLS, 'Carry on despite an error'.

    Be careful !!

  54. What’s with all the non-English posts?

    Maybe someone can explain this to me. The article is written in English; therefore, it follows that posting a (relevant) response to it shows that you know English. If you know English and are replying to an article written in English, what makes you decide to use another language?

    • lol, well, the comments that are not in english are “pingbacks”… stuff about this article that were written on another blog. WordPress writes a comment for each automatically when it receives notifications of such posts…

  55. What's with all the non-English posts?

    Maybe someone can explain this to me. The article is written in English; therefore, it follows that posting a (relevant) response to it shows that you know English. If you know English and are replying to an article written in English, what makes you decide to use another language?

    • lol, well, the comments that are not in english are "pingbacks"… stuff about this article that were written on another blog. WordPress writes a comment for each automatically when it receives notifications of such posts…

  56. Well I guess that makes sense. This is otherwise the kind of thing that makes foreigners look stupid, like the way they must feel when English-speakers act like shouting is going to magically cross a language barrier.

    • I think you’re the one who is looking pretty stupid here now buddy for not knowing what a pingback is.

  57. Well I guess that makes sense. This is otherwise the kind of thing that makes foreigners look stupid, like the way they must feel when English-speakers act like shouting is going to magically cross a language barrier.

    • I think you're the one who is looking pretty stupid here now buddy for not knowing what a pingback is.

  58. Thanks for your suggestion.Im really annoyed by things i wanted to delete but i cant succesfully delete.And Im gald to find an answer from your article

  59. Thanks for your suggestion.Im really annoyed by things i wanted to delete but i cant succesfully delete.And Im gald to find an answer from your article

  60. Really very helpful….
    i wanna ask u somthin just for the blogger.com ..
    if can we setup blogger blog locally on our windows system…..on windows xp …..just for d testing prupose ..
    b4 making any online changes i wanna see dt on my system…
    or is there any book to read for …or any other kinda help will be appreciated …..

    thanks alot for being a geek dts so sexy …..

    take care

    mukarram

  61. Really very helpful….

    i wanna ask u somthin just for the blogger.com ..

    if can we setup blogger blog locally on our windows system…..on windows xp …..just for d testing prupose ..

    b4 making any online changes i wanna see dt on my system…

    or is there any book to read for …or any other kinda help will be appreciated …..

    thanks alot for being a geek dts so sexy …..

    take care

    mukarram

  62. Sometiems deleting all other files in a folder can do it. Once I got a virus/spyware/etc from MiniClip. Deleting the folder did not work, but deleting all but the undeletable file let me eventually delete the file. Although this was years ago, I remember that the folder contained, among other things, a few .txt’s or something mocking me.

  63. Sometiems deleting all other files in a folder can do it. Once I got a virus/spyware/etc from MiniClip. Deleting the folder did not work, but deleting all but the undeletable file let me eventually delete the file. Although this was years ago, I remember that the folder contained, among other things, a few .txt's or something mocking me.

  64. I have a problem file that isn't locked, but somehow has an invalid character embedded in the filename, so its not only inaccessible, its undeletable!

    Some crappy Curtis MP3 software driver created the folder and file, I guess they were trying to keep it from accidental deletion or the installer was just buggy.

  65. I have a file (uye38.sys)that I can not unlock with unlocker,Ad aware starts then just reboots my computer,trojan remover finds it, but can not delete or rename it.I have tried to delete it at the command prompt says access denied (did not try with the disk yet)System restore says incomplele. When I try to open the file it comes up in notepad and says access is denied. Any one have help for this one?

  66. I have a file (uye38.sys)that I can not unlock with unlocker,Ad aware starts then just reboots my computer,trojan remover finds it, but can not delete or rename it.I have tried to delete it at the command prompt says access denied (did not try with the disk yet)System restore says incomplele. When I try to open the file it comes up in notepad and says access is denied. Any one have help for this one?

  67. Maybe I should have tried the windows cd before I posted.
    Who ever posted putting in the Win cd hit R and go to the recovery console and delete the file worked just fine.(Kiltalk I think) Thanks for that info…cool site, I’m glade I found my way here :) I did find out one thing though, Unlocker don’t always work :P
    Thanks Again, Peace

  68. Maybe I should have tried the windows cd before I posted.

    Who ever posted putting in the Win cd hit R and go to the recovery console and delete the file worked just fine.(Kiltalk I think) Thanks for that info…cool site, I'm glade I found my way here :) I did find out one thing though, Unlocker don't always work :P

    Thanks Again, Peace

  69. Instead of recommending a product – why don't you guys just tell us how to delete a locked file…how does the product delete a locked file ..MAGIC???? Are you guys selling SPELLS???!!!

  70. heres one for someone. I had a 600mg file that was trash (it was a directory that had an old version of windows in it that was archived.) since i don’t need it i figured i would delete it. put it in the trash bin and went to clear it out and walla it’s gone. next day i need to do a reboot delete a few txt files i don’t need and click delete and get an error, can’t delete c:/oldwinarchive/ acess denied blah blah blah. wow, open up my trash bin and … huh? no file. so i do it again, right click, delete and there is the error again! hmmm, i try to restore so i can do a manual delet and there’s no file to restore! hmm two weeks later i’m cleaning the ole drive again and delete a .iso i made (52 megs) of old trade rags in ebook format and when i right click hit delete and it’s gone. I then notice a web page i downloaded to read offline so i delete it and get a suprise, error cannot delete c:/offlinemags/aug2007.pdf access denied, but it’s not in the trash bin.

    so anyone got an idea of where i should start with this? it seems to change filenames every so often. i have used unlocker when i needed to get rid of malware so i figured this was the place to ask.

  71. heres one for someone. I had a 600mg file that was trash (it was a directory that had an old version of windows in it that was archived.) since i don't need it i figured i would delete it. put it in the trash bin and went to clear it out and walla it's gone. next day i need to do a reboot delete a few txt files i don't need and click delete and get an error, can't delete c:/oldwinarchive/ acess denied blah blah blah. wow, open up my trash bin and … huh? no file. so i do it again, right click, delete and there is the error again! hmmm, i try to restore so i can do a manual delet and there's no file to restore! hmm two weeks later i'm cleaning the ole drive again and delete a .iso i made (52 megs) of old trade rags in ebook format and when i right click hit delete and it's gone. I then notice a web page i downloaded to read offline so i delete it and get a suprise, error cannot delete c:/offlinemags/aug2007.pdf access denied, but it's not in the trash bin.

    so anyone got an idea of where i should start with this? it seems to change filenames every so often. i have used unlocker when i needed to get rid of malware so i figured this was the place to ask.

  72. You didn’t cover DOS/windows reserved filenames. E.g. getting rid of a file named con.txt can be rather problematic.

    Although there may be other means, I like the approach:
    * shut the system down
    * boot CD/DVD of a different operating
    system – e.g. Knoppix, Ubuntu, etc.
    * mount the applicable filesystem(s) rw
    * change attributes on the file(s) if
    necessary
    * delete (rm(1)/unlink(2)) the file(s)
    * unmount the filesystem(s)
    * you’re done (reboot you DOS/windows, if
    you really want)

    The article also didn’t cover “undeletable” files on other operating systems.

  73. You didn't cover DOS/windows reserved filenames. E.g. getting rid of a file named con.txt can be rather problematic.

    Although there may be other means, I like the approach:

    * shut the system down

    * boot CD/DVD of a different operating

    system – e.g. Knoppix, Ubuntu, etc.

    * mount the applicable filesystem(s) rw

    * change attributes on the file(s) if

    necessary

    * delete (rm(1)/unlink(2)) the file(s)

    * unmount the filesystem(s)

    * you're done (reboot you DOS/windows, if

    you really want)

    The article also didn't cover "undeletable" files on other operating systems.

  74. One simple solution that I didn't see anyone touch on is to use a direct hex editor. You can open pretty well any file, and while what it contains will be utter gibberish, if you just start stripping out lines of it the file becomes useless and it is very easy to delete at that point.

  75. One simple solution that I didn’t see anyone touch on is to use a direct hex editor. You can open pretty well any file, and while what it contains will be utter gibberish, if you just start stripping out lines of it the file becomes useless and it is very easy to delete at that point.

  76. THANK YOU SO MUCH geeksaresexy.net! I'm so glad to be rid of that damned virus. :) Thank you

  77. Thank you for the clear instructions!! I was able to delete the fdcatch.dll file by killing the Explorer.exe in Task manager.. but the folder itself had to be deleted after using Unlocker program. Thanks again :)

  78. Thank you for the clear instructions!! I was able to delete the fdcatch.dll file by killing the Explorer.exe in Task manager.. but the folder itself had to be deleted after using Unlocker program. Thanks again :)

  79. Pingback: Download CHIP.eu - Tool-Blog » Blog Archive » Geeks are sexy - and competent: How to delete an undeletable or blocked file

  80. Excellent tips. I killed explorer.exe and managed to get rid of a file that otherwise refused to be deleted, despite reboots, Safe Mode and so on. Thanks =)

  81. Excellent tips. I killed explorer.exe and managed to get rid of a file that otherwise refused to be deleted, despite reboots, Safe Mode and so on. Thanks =)

  82. I tried both of those things (actually, the first before finding this page) and this file will still not delete! Is there anything else to try?

  83. I tried both of those things (actually, the first before finding this page) and this file will still not delete! Is there anything else to try?

  84. elow there is this one file of mine that i just can’t delete…it is a .mpg file but when i right click on it there is no properties or delete available there is only enueqe in winamp… and i can’t also rename it…

    it is just undeletable…

    please help help help?!

    • 1: First make sure you can see the extensions of your files…winxp hides them by defaut.

      2: go to my computer => open any folder => then go to: tools => folder options => then select the view tab and look for Hide extensions for known files types and uncheck the little box. then click ok and close all windows.

      3: now create a new text file by richt clicking anywhere on the desktop and selecting new text document.

      4: rename the new text document exactly as the file you need to delete (extension included)… now drag the new renamed file and place it on the folder where the corrupt undeletable file resides. and overwrite it.

  85. elow there is this one file of mine that i just can't delete…it is a .mpg file but when i right click on it there is no properties or delete available there is only enueqe in winamp… and i can't also rename it…

    it is just undeletable…

    please help help help?!

    • 1: First make sure you can see the extensions of your files…winxp hides them by defaut.

      2: go to my computer => open any folder => then go to: tools => folder options => then select the view tab and look for Hide extensions for known files types and uncheck the little box. then click ok and close all windows.

      3: now create a new text file by richt clicking anywhere on the desktop and selecting new text document.

      4: rename the new text document exactly as the file you need to delete (extension included)… now drag the new renamed file and place it on the folder where the corrupt undeletable file resides. and overwrite it.

  86. Hellllllpppppppppppp

    fuc*ing program, :((( i need a big help

    i use Unlocker on my C:/Program Files (x86) in Vista Ult x64 and now i can’t use some progrems :(( i will note open OPERA, ACDSEE, CYBERLINK POWERDVD …
    what i have to do to disable the prgoram ? i uninstall it buth still no acces to thoes programs ….

    Help

    MAIL ME :devil_danut@hotmail.com

  87. Hellllllpppppppppppp

    fuc*ing program, :((( i need a big help

    i use Unlocker on my C:/Program Files (x86) in Vista Ult x64 and now i can't use some progrems :(( i will note open OPERA, ACDSEE, CYBERLINK POWERDVD …

    what i have to do to disable the prgoram ? i uninstall it buth still no acces to thoes programs ….

    Help

    MAIL ME :devil_danut@hotmail.com

  88. Pingback: GAS’s Most Popular Stories of 2008

  89. Hello,

    I have a bunch of music files that I downloaded which I now want to delete. The attribute for these files is “read only” which made them impossible to delete since I don’t have admin. privileges on this computer. I used Unlocker but get the “error debug privileges” (which essentially is telling me “you don’t have admin. pri., buddy, ;) ).

    I want to commend TNT-ROX for his/her post since I followed the instructions and was able to change the attribute from “read only” to none and was able to delete these stubborn files.

    I also want to let all of you know how appreciative I am to all of your posts. By reading them I/we can learn a lot from each other. Thanks.

    Sleepless

  90. Hello,

    I have a bunch of music files that I downloaded which I now want to delete. The attribute for these files is "read only" which made them impossible to delete since I don't have admin. privileges on this computer. I used Unlocker but get the "error debug privileges" (which essentially is telling me "you don't have admin. pri., buddy, ;) ).

    I want to commend TNT-ROX for his/her post since I followed the instructions and was able to change the attribute from "read only" to none and was able to delete these stubborn files.

    I also want to let all of you know how appreciative I am to all of your posts. By reading them I/we can learn a lot from each other. Thanks.

    Sleepless

  91. I was not able to delete some .mov files. I simply uninstalled quicktime, then was able to delete them.

    Hope it can help

  92. I was not able to delete some .mov files. I simply uninstalled quicktime, then was able to delete them.

    Hope it can help

  93. Holy shit dude, i can’t thank you enough.. i had a trojan i removed everything but i couldnt access the file to remove it, you truely saved my butt
    Thanks

  94. Holy shit dude, i can't thank you enough.. i had a trojan i removed everything but i couldnt access the file to remove it, you truely saved my butt

    Thanks

  95. Iam having a problem with an MP4 file on my computer. when i try to delete this file it just makes a ding sound. Same with when i click rename file or Properties. I tried the unlocker. but unlocker doesnt even pop into the file tab for this certain file. i have tried re writing this file also..does not work. I have tried to use the command prompt as well but to no luck…anyone please help.

  96. Iam having a problem with an MP4 file on my computer. when i try to delete this file it just makes a ding sound. Same with when i click rename file or Properties. I tried the unlocker. but unlocker doesnt even pop into the file tab for this certain file. i have tried re writing this file also..does not work. I have tried to use the command prompt as well but to no luck…anyone please help.

  97. SOOOOOOOOOOOO THANKFUL this AMAZING program exists. I recovered a file from the trash that apparently messed up my rundll32 file AND WOULDN’T STOP!!!. i almost gave up, but then a ran this to delete it, and viola! it’s gone, my comp is in perfect health once again, ty sooooooo very much to whoever made this. I would recommend this program to ANYone.

  98. SOOOOOOOOOOOO THANKFUL this AMAZING program exists. I recovered a file from the trash that apparently messed up my rundll32 file AND WOULDN'T STOP!!!. i almost gave up, but then a ran this to delete it, and viola! it's gone, my comp is in perfect health once again, ty sooooooo very much to whoever made this. I would recommend this program to ANYone.

  99. Hey i cant thank you enough. i used the unlocker option you suggested for one of the things that has been irritating me the most. it worked. Thank you so much.

  100. Hey i cant thank you enough. i used the unlocker option you suggested for one of the things that has been irritating me the most. it worked. Thank you so much.

  101. I just ran a virus scanner and it found some files, that look almost like files that SHOULD be on my comp. but but they have other characters that let me know they’re not the right ones (ex. C:|$Recycle.BinS-1-5-21-1192570614-2110678669-3847922115…..) The virus scanner says it is: Locked file. Not tested. I am a bit computer illiterate so I don’t know what to do about em, anyone help?

  102. I just ran a virus scanner and it found some files, that look almost like files that SHOULD be on my comp. but but they have other characters that let me know they're not the right ones (ex. C:|$Recycle.BinS-1-5-21-1192570614-2110678669-3847922115…..) The virus scanner says it is: Locked file. Not tested. I am a bit computer illiterate so I don't know what to do about em, anyone help?

  103. Hey all.
    Okay, so I actually know how to delete a folder and or file through command prompt but recently I had a file that wouldn’t delete through command prompt or the right click context menu.

    I tried the “Unlocker” suggestion on here, still nothing.
    I’ve also tried closing of explorer.exe as well.
    Yet still nothing.

    This folder and all it’s contents is frustrating me so much!

    Anyone have any ideas??
    I’m so lost for ideas now, I’ve done everything I know of!

    Thanks,
    Shane

  104. Hey all.

    Okay, so I actually know how to delete a folder and or file through command prompt but recently I had a file that wouldn't delete through command prompt or the right click context menu.

    I tried the "Unlocker" suggestion on here, still nothing.

    I've also tried closing of explorer.exe as well.

    Yet still nothing.

    This folder and all it's contents is frustrating me so much!

    Anyone have any ideas??

    I'm so lost for ideas now, I've done everything I know of!

    Thanks,

    Shane

  105. Since Unlocker doesn’t work under windows 7 there is another option to delete those locked folders.

    1. Goto Start>Programs>Accessories
    2. Right click Command Prompt
    3. Select Rus as Administrator (Otherwise you’ll get Access Denied error while deleting folder in step 5)
    4. Navigate to your folder
    5. Type “rmdir /S bf9aa52a65e55ccd5278f7d3f0b0bd1a” without quotes

    This will delete that long named folder.

    • Actually, I think Unlocker does work on Windows 7. “Does unlocker work on Windows Vista and Windows 7? Yes.” -Unlocker FAQ

  106. Addition for my previous post.

    If you still get Access Denied error, this means that there are subfolders that you need to take ownership. To do this

    1. Right click to your folder > Properties
    2. Security Tab > Click Advanced
    3. Owner Tab > Click Edit
    4. Select your account and check “Replace owner on subcontainers and objects”
    5. Click Ok to close all windows

    Now you are ready to delete folder, just repeat the steps in my previous post.

  107. Since Unlocker doesn't work under windows 7 there is another option to delete those locked folders.

    1. Goto Start>Programs>Accessories

    2. Right click Command Prompt

    3. Select Rus as Administrator (Otherwise you'll get Access Denied error while deleting folder in step 5)

    4. Navigate to your folder

    5. Type "rmdir /S bf9aa52a65e55ccd5278f7d3f0b0bd1a" without quotes

    This will delete that long named folder.

    • Actually, I think Unlocker does work on Windows 7. "Does unlocker work on Windows Vista and Windows 7? Yes." -Unlocker FAQ

  108. Addition for my previous post.

    If you still get Access Denied error, this means that there are subfolders that you need to take ownership. To do this

    1. Right click to your folder > Properties

    2. Security Tab > Click Advanced

    3. Owner Tab > Click Edit

    4. Select your account and check "Replace owner on subcontainers and objects"

    5. Click Ok to close all windows

    Now you are ready to delete folder, just repeat the steps in my previous post.

  109. Well, also if you have the ability to, ERDCommander works awesome for this [now called DaRT]… Avail on W-BB

  110. Well, also if you have the ability to, ERDCommander works awesome for this [now called DaRT]… Avail on W-BB

  111. Unlocker is excellent–simple and pretty nearly 100% effective. Wonderful tool, in my opinion.

  112. Unlocker is excellent–simple and pretty nearly 100% effective. Wonderful tool, in my opinion.

  113. unlocker is a miracle. it really helped me moving a folder on which i tried many other ways. thanks man

  114. unlocker is a miracle. it really helped me moving a folder on which i tried many other ways. thanks man

  115. I use the “unlocker” program it works. I use it mainly on other peoples computers when I`m repairing them because I use Linux Ubuntu myself so I don`t have this problem in the first place.

  116. I use the "unlocker" program it works. I use it mainly on other peoples computers when I`m repairing them because I use Linux Ubuntu myself so I don`t have this problem in the first place.

  117. Another method is if you have Linux then you can delete or rename files there without Windows being able to stop you.

  118. wow dumb ass it says go back to the command prompt and delete it WTF does that even mean how do you delet it

  119. Aside from using third party software like unlocker, using kill explorer and windows recovery console, I found other ways we can delete seemingly locked files. Sometimes, files won't be deleted simply because another program is currently using it. You may or may not be aware of it, so what I do is close all programs and try deleting the file again. Or, I restart my pc to be sure. I've also find other ways to deal with "cannot delete file"like renaming and deleting, changing windows explorer view options and getting a good spyware.

  120. i have my folder locked with hide folders 3.5 and i have uninstalled it and it cannot be reinstalled again. this is the fixed scenario. i can view the folder on cmd prompt but not bale to change its attributes ? can anyone help?

  121. I wish this was a little more detailed. I had to look up running a command prompt and still can't figure out how to navigate to the file I want to delete using it.

    Clearly this is common knowledge for a lot of people, but I'm definitely not alone in finding this all over my head!

  122. The Unlocker program didn't work, it will only unlock files it locks, not Windows.  There is no right-click "unlock" command, only "lock folder."

  123. i downloaded Unlocker and it totally deleted them. thank youuuu. I had those files on my desktop and I really hated them since they occupied my desktop (besides the space)

  124. tried it the program didn't work, it cannot unlock files where the image name has changed due to a reloading of the hard drive and which are legacy files

  125. I am new to this form.. i faced problem like this .. some file may be corrupted because of internal error so in windows XP i ran " chkdsk /f /r" so windows itself check the files and truncate the corrupted files…most this case will happen an fat 32 . and convert fat32 to ntfs

  126. Just now downloaded unlocker 1.9 and tried to use it to nuke a couple of unwanted video files……damned windows hate msg jumps up and says "access denied" —-yes, even with unlocker on right click. I did download unlocker with file hippo if that makes any diff.

  127. The best and simplest way is to use the "Long Path Tool". Just go to Google, search for Long Path Tool, download this useful tool and it can fix all this type of errors.

  128. This is very amazing it wiil help me to delete the this unwanted files and make free space for more storage

  129. unlocker is an awesome program had an issue with one file and it managed to kill the I am guessing a spyware file which was running on the back ground in seconds so I could delete the folder :D

  130. I have files in my download folder and I can't delete them. When ever I try, my explorer keeps crashing. my operating system is Win7 and I have all the up to date security patches from Windows.