Often, while deleting files you might have come across, "Error in deleting files." This error is basically saying that "The file or folder you are deleting is being used." Usually, you don’t know why this error is showing even though, you are not using the file. This is probably a system bug, or you may be the file is in use, but you don’t know who is using the file or its being used by shared computers. Generally, you will get such error only when deleting a file which is being used or file which is protected.
I’ll show you several ways of removing these types of files and even some Software Application. Furthermore, I’ll tell you the best way of removing such files in Windows.
Follow the below steps to Remove Undeletable files in Windows
In case the error occurred due to the file being used by some programs or applications. Simply try restarting the system. Once the system is restarted, try deleting the files or folder which you were trying to delete earlier. If it doesn’t help try another method or solution mentioned below.
Delete the File Using Command Prompt
Step 1: Navigate to the location where the file is located e.g.: C:\new folder\undeletable file.exe. Note down the directory.
Step 2: Open command prompt. Go to Start –> Run, Now type "cmd" and Press Enter.
Step 4: Now, we will use command prompt to delete the file. Switch to Command Prompt window. In Command Prompt, Use CD command to locate the file directory in command prompt. Once you are in the directory using command prompt.
Enter Del <file name>
i.e. Del "Undeletable file.exe" and Press Enter.
Here, we are using DEL command to delete the file.
Step 5: Now, Go to Task manager and bring back the explorer.exe. Go to File –> New Task and Enter Explorer.exe and Press OK.
Delete File Using Software: Unlocker
Since the file is being used by some application or process, and you don’t know which application or process is using it. In such case, Unlocker is the best option to get this problem solved. Unlocker is tool, which not only delete files but also tell which program or application is using it.
There are many such software available on the internet, which does the same task, but we prefer Unlocker. I recommend you to use unlocker when such problem arises. It tells which program or application is using the file, it unlocks the process for that file and deletes the file. Using Unlocker is the safest way of deleting file since, you know which processes are associated with that file, so you don’t have regret latter. Download Unlocker from FileHippo.
(Update) Many of our readers asked me, "Applications like Adobe, flash, Photoshop, etc. Folders are not getting deleted." These files are protected, and you cannot easily delete such files. However, to delete this file, you try using Solution #2 but the best way to delete such files is Unlocker, i.e. Solution #3, As its fast and simple.