How To Delete Those Pesky "Undeletable" Files
|Published:||Apr 8, 2008|
|Related OS:||XP / Vista|
You've probably found yourself in this situation before: You're clearing out some old files when suddenly a box pops up announcing that it can't delete a particular file or folder because "it is being used by another person or program," or "access is denied," or any number of variations, none of which actually give you any useful information. You might have closed every program your open but Windows still claims that the file is somehow locked and undeletable. Like a zombie, it cannot be slain.
Not without the proper tools, at least. Now, the easiest way to handle most of these situations is to simply reboot your computer. That will end all running programs, including whichever is using the pesky undeletable file, and when your computer starts back up you should be able to delete the file. But I know and you know that sometimes rebooting is a pain, especially if you're in the middle of something and your computer, like mine, seems like it take an hour to reboot. And sometimes, as I discovered last week, even rebooting won't force some files to shuffle off this mortal coil. For these situations, I recommend a little tool called Unlocker.
Unlocker is free and a mere 237kb download, but is packed with features. Once you've installed it, its basic usage is as follows: When you encounter a file or folder you're unable to delete, rename, or move, simply right-click on it and choose Unlocker. The Unlocker window will appear listing all of the offending files and the name of the program or process that has it locked. Below the list you'll see a few options: In the lower right, Kill Process will attempt to end the program or process that's holding hostage the files that you've selected in the list. Unlock will merely attempt to release the program's hold without actually ending it, and of course Unlock All will do so for all of the files shown in the list instead of just the ones you've highlighted. In the lower left you'll see a drop-down menu of actions that Unlocker can take after it's unlocked the file. "No action" is selected by default, so once you've unlocked the file, nothing further will happen. You can choose Delete, Rename, Move, or Copy, however, and then when you click the Kill Process or Unlock button, Unlocker will automatically perform the chosen action.
The above steps will work for the majority of "undeletable" files. But once in awhile Unlocker will run into a process it can't immediately kill or a file it can't instantly unlock. For these, you'll still have to reboot. Unlocker makes this particularly easy, though: When it can't delete a file directly, it will schedule the file to be automatically deleted (or moved or renamed or whatever action you want) the next time Windows boots, but before any programs (that might hold the file hostage) start. This is the way I was finally able to delete my "zombie" file.
Finally, Unlocker has another useful feature called Unlocker Assistant. It runs in the background (you can optionally configure it to start when Windows does) and will automatically activate when it detects a process preventing you from deleting or moving a file. This saves you the trouble of right-clicking on the offending file and starting Unlocker automatically. Only a minor time-saver, but useful anyhow.
Blogger since 1999, Jordan Running went pro in 2005 and never looked back. Sometimes programmer, occasional photographer, and serial tinkerer, he decided to to switch to Linux in 2001 but just hasn't quite gotten around to it yet.
Using the iPhone App Store to do more with your iPhone view it
A look at the iPad's slick graphical user interface view it
There a big difference between deactivating your Facebook account and deleting it. We'll show you how to do both in this tutorial! view it
Bypassing the recycle bin and getting rid of delete confirmation messages view it
Make the move from the Windows world to the land of the Mac view it
Moving the icons around on your BlackBerry is quick and easy. view it
Moving icons on your Android phone is quick and easy view it