How to delete a locked file from your PC

Who I am
Martí Micolau
@martimicolau
Author and references

It often happens that you try to delete a file or folder and fail to do so because it is blocked by another application. The problem could be caused by the name being too long, invalid, or the file being in use.

Usually the most common errors are "system protected file", "unable to delete file because it is in use by another process", "file deletion failed" and so on. In these cases delete a locked file from the PC could it be a problem to continue your business then? Don't worry, this is a frequent problem and you can fix it by installing a simple free program. If you want to find out how to delete a locked file from your PC keep reading and follow the directions I am about to give you.



Malwarebytes FileASSASSIN is a free application that can delete locked files from your PC at any time, all you have to do is download it from its official page by clicking on the Download button, located in the center of the page.

Wait for the download to complete and then double click on the file fileassassin-setup 1.06.exe to launch the installation. Click on Si, Next, accepts the conditions of use of the program by ticking the item I accept the terms in the License Agreement and complete by pressing: Next, install and finally Finish.

starts FileASSASSIN and click on the button with the three dots [...] to select the locked file you want to delete. For delete a locked file from the PC you can choose whether to simply unlock the file from the process that uses it or to delete it altogether. In the latter case you must also select the item Delete fillet and press Run to carry out the deletion.



If this procedure is not successful, you can use a second option by selecting Use delete on Windows reboot functions. In this case, the deletion of the file will be performed the next time the PC is restarted, an operation that allows you to unlink the file from any process that may block it.

Another solution to delete a locked file from your PC is to use the tool FilExile. To download it, go to this web page and press the green button Download.

Once the download is complete, double click on the file FileExilev2.00_Setup.exe to start the installation; completed start and click on the button Browse to select the locked folder or file you want to delete. All you have to do is click on Clear.


FilExile by default it has the security option enabled which prevents the deletion of files and folders necessary for the proper functioning of the computer. If, therefore, you have selected a system file, the Clear will remain disabled. Then if you are aware of what you are doing, tick the option Disable Security Features on the menu options, you can proceed with deleting these files as well.


For owners of Apple PCs, deleting a locked file on Mac is possible through the Terminal reachable from Finder> Applications> Utilities. After opening it type the following command sudo chflags -R nouchg [full_path_folder] or if it is a file sudo rm -rf [file_path_to_delete].

Programs to permanently delete files

add a comment of How to delete a locked file from your PC
Comment sent successfully! We will review it in the next few hours.