How to Delete Undeletable Files in Windows

Sometimes you are faced with an error when you try to delete a file permanently. It may be Spyware, Malware, Ad-ware or any Trojan. In some situations, the file is being used by the essential Windows programs such as Windows Explorer,...

Method 1 of 2:

Using an Application

  1. Picture 1 of How to Delete Undeletable Files in Windows
    Download a File Deleting Application. There are many free and safe options that you can find with a little research like Unlocker, LockHunter, and FileASSASSIN. These applications are often used for deleting malware. You can usually download these directly from their website, following their instructions.[1]
  2. Picture 2 of How to Delete Undeletable Files in Windows
    Double-click on the downloaded application. If you are using FileASSASSIN, a window will appear that will ask you to select the file you wish to delete. You may either input the file manually by typing it out or go to "Browse" at the bottom of the window. The other applications may vary slightly in layout, but the process will be generally the same.
  3. Picture 3 of How to Delete Undeletable Files in Windows
    Delete the file. Once you have selected the file you want to delete, click on it and then select "delete" from the options that the application provides you.
  4. Picture 4 of How to Delete Undeletable Files in Windows
    Select "Execute." In a few moments, the file will be deleted and you can close the program. You may want to check the files original location to determine that the delete was successful.
Method 2 of 2:

Using the Command Prompt

  1. Picture 5 of How to Delete Undeletable Files in Windows
    Restart your computer. In any situation where you are experiencing computer issues, it is always advisable to restart your computer and try the task again before moving on to more drastic measures. If the file continues to be undeletable, move onto the next steps.
  2. Picture 6 of How to Delete Undeletable Files in Windows
    Go to the "Command Prompt." You can find this be going to "Start" and then typing "CMD" or "Command Prompt" without the quotation marks into the search bar. You can also do this by clicking Win+R on your keyboard.
  3. Picture 7 of How to Delete Undeletable Files in Windows
    Right-click on "Command Prompt." This will prompt a drop down menu where you can select "Run as Administrator."
    1. You will need to have Admin Access in order to complete this method.
  4. Picture 8 of How to Delete Undeletable Files in Windows
    Wait for a black window to appear. This is where you will input your command in order to delete a file.
  5. Picture 9 of How to Delete Undeletable Files in Windows
    Enter your command. This command will look something like the following: .DEL /F /Q /A C:UsersYour usernameThe location of the fileName of the file you wish to delete.[2]
    1. For example, if you are trying to delete a file named "unwanted.exe," the command will look like this: .DEL /F /Q /A C:UsersYour UsernameDesktopunwanted.exe
  6. Picture 10 of How to Delete Undeletable Files in Windows
    Press Enter. This will now permanently delete the file. You may want to go back and check the original location of the file to determine that the delete was successful.
Update 04 March 2020
Category

System

Mac OS X

Hardware

Game

Tech info

Technology

Science

Life

Application

Electric

Program

Mobile