Removing Undeleteable Files

Mon Jun 12, 2006 12:25PM EDT

See Comments (3)

Over the weekend I spotted an innocuous post about how to delete those frustrating files that, when you drag them to the Recycle Bin, give you a frustrating message along the lines of: "Cannot delete file: It is being used by another person or program."

Arrrrgh, so aggravating. Here's the post, and here's the simple first step from that post, outlining how to delete an "undeleleable" file:

  • Open a Command Prompt window and leave it open. Close all open programs. (Click Start > Run and type CMD to open a command prompt.)
  • Click Start, Run and enter TASKMGR.EXE. (Or just click Control-Alt-Delete to bring up the Task Manager.)
  • Go to the Processes tab and click End Process on Explorer.exe. Leave Task Manager open.
  • Go back to the Command Prompt window and use the CD command to get the the director with the bad file.
  • At the command prompt type DEL where is the file you wish to delete.
  • Go back to Task Manager, click File, New Task and enter EXPLORER.EXE to restart the GUI shell. Close Task Manager.

Now this may not always work, but it should more often than not. The other option is a freeware application that can close the file for you. Unlocker is just such a beast. Install the application, then when you encounter one of those "file in use" errors, just right-click the file and select Unlocker. Click Unlock All and the files will be taken care of. No command line required. It's definitely worth a download!

Comments on Removing Undeleteable Files

Post a Comment

Join in the discussion. Here you'll see the comments in the order they were posted.

  • 1 Posted by bu_bkr on Thu Sep 3, 2009 3:15PM EDT Report Abuse

    Thanks for the hard work... but what did you mean by using the CD command to get the director with the bad file? what is the CD command?

  • 2 Posted by cnull on Thu Sep 3, 2009 3:27PM EDT Report Abuse

    ah - the CD command is to Change Directories. Just type "CD c:\ " to get to the directory containing your file.

  • 3 Posted by picallo069 on Thu Sep 3, 2009 8:10PM EDT Report Abuse

    oh man, its so easy using unlocker!!!(http://ccollomb.free.fr/unlocker/)

More Posts: 1

Post a Comment


My Tech

Please enable your browser's cookies to activate the My Tech column.

Also on Yahoo! Tech

Computers Home Office Wi-Fi & Networking Phones & PDAs Cameras & Camcorders TV & Home Theater Portable Audio
 

Question and Answer content at Yahoo! Tech is written by Yahoo! users at Yahoo! Answers. Yahoo! does not evaluate or guarantee the accuracy of any Yahoo! Answers content. For more information, read the Full Disclaimer.

Opinions expressed by the Advisors are their own and do not necessarily reflect the views of Yahoo! Inc. Yahoo! receives no compensation from any manufacturer or distributor nor does it compensate any Advisor for the coverage of any product or service in any Advisor's content.