There are times when certain files in your computer become undeletable because of some virus or any other reason. This means that the file cannot be deleted by simply clicking the delete button. Files usually become undeletable because of an active process that has an open handle to the file which prevents it from being deleted. Under most circumstances if you close down all running programs you’ll find that most files will then be free to delete, but that’s not always the case, and in some cases it may even be a trojan or other form of malware that’s preventing itself from being deleted. Now some undeletable files may not harm your computer but usually these type of undeletable files cause problem in proper functioning of an operating system. In this post am going to give some computer help and will share with you different ways of getting rid of such stubborn files :
- Open command Prompt window and leave it open.
- Close all running (active) programs.
- Click Start > Run.
- Key in “TASKMGR.EXE” (without quotes) in the Run window.
- Go to the Processes tab.
- End process Explorer.exe.
- Leave the Task Manager open.
- Go back to the Command Prompt window and change to the directory in which the undeletable file is located in.
- In the command prompt type “DEL <filename>” (without quotes) where ‘filename’ is the file you wish to delete.
- Now go back to Task Manager.
- Click on File > New Task.
- Enter “EXPLORER.EXE” (without quotes) to restart the GUI shell.
- Close Task Manager.
And thats it ! You have deleted the file safely. Visit the directory in which the undeletable file was located to verify that the file has been deleted.
- Open Notepad.
- Click on File > Save As.
- Locate the folder where the undeletable file is located.
- Choose “All files” from the file type box.
- Click once on the file which you wish to delete so its name appears in the “filename” box.
- Put a ” at the start and end of the filename (it will overwrite it).
- Click on save.
- It will ask you to overwrite the existing file, then choose yes.
Now after doing so just locate the file and delete it as you delete any other file. The file will most probably be deleted.
- Click on Start > Run.
- Type “command” in Run dialog box.
- Go to the directory in which the undeletable file is located. [type: cd c:\xyz (xyz stand for your folder)]
- Once you are in the folder in which the non-deletable file is. Type in “dir” (without quotes) a list will come up with every file inside.
- Now delete the file by entering the file name.
If you cannot access the folder because it has spaces. For example, Program Files, in this case you will have to type only the first 6 letters then put a ~ and then 1 without spaces. Example: cd c:\progra~1\
An example of how to delete the file using command prompt: If your file name was temp jerry.bmp you would type once in the specific folder thorugh command, del tempje~1.bmp and your file should be gone (Make sure to type in the correct extension).
NOTE: This method may not work for all types of files especially virus files. I therefore suggest you to first use Method 1 and Method 2 first.
If the above mentioned 3 methods fail, then just download this free utility. It will surely help you in deleting undeletable files. Moreover it’s also very useful when you have to delete virus file. This utility marks file for deletion and during next reboot. This method is based on documentation from Microsoft that describes a function called MoveFileEx.
You can download the freeware directly from their site DelLater.