Skip to content

How to delete undeletable files in XP?

October 3, 2009

When you try to delete certain files you will get the an access denied, or file is used by another program error message. I will tell you how to delete these undeletable file.
1. Navigate to Start > Search > All Files and Folders
2. Enter the name of file that you cannot delete manually in the search box
3. Press the Search button and wait until the search is finished.
4. Now you will got the full details of the undeletable file along with tis full path address which may look like “c:\windows\system32\undeletable.txt” or so.
Now we are going to use the command prompt in order to delete this file.
5. Navigate to Start > Run and type cmd .Press Enter.
6. Change the directory to the one where the undeletable file is located. Here it is in the system32 directory. So we are going to use the command  “cd \windows\system32” in order to change the directory to sytstem32 in the c: drive.
7.The next step is to use the “DEL” command in order to delete the file we want to delete. For this type DEL <filename> in the command prompt and press Enter. Here we are going to delete undeletable.txt and so the command looks like “DEL undeletable.txt“.
Note:Some files for example the files in the temp directory are files that are used by the programs currently running in your system. So if you got a error message saying “File is being used by another program or process” then try to figure out which program may be using the file. To do this press “ALT+ CTRL + DELETE” to open the task manager. Then select the process tab and select the process you think may be using the file and right click and select “End Process“. Otherwise you can stop all the running programs and your firewall or antivirus that may be running in the background and try to delete the file.

No comments yet

Leave a comment