How to Force Delete a File in Easy Steps

delete file

Deleting a file is a common task that we perform on our computers, but sometimes we encounter a problem where we are unable to delete a file. This can happen due to various reasons such as file in use, file access denied, or file corrupted. In such a case, you can force delete a file. In this article, we will guide you on how to force delete a file in easy steps.

Step 1: Close the Application that is Using the File

close application

If you are unable to delete a file that is in use, the first step is to close the application that is using the file. You can check which application is using the file by opening the Task Manager and checking the list of running applications. Once you have closed the application, try deleting the file again. If it still doesn't work, move to the next step.

Step 2: Check if the File is Read-Only

read-only

If the file is read-only, you will not be able to delete it. To check if the file is read-only, right-click on the file and select Properties. In the Properties window, check the Read-only box. If it is checked, uncheck it and click Apply. Now try deleting the file again.

Step 3: Take Ownership of the File

take ownership

If you are unable to delete a file due to access denied, you can take ownership of the file. To take ownership of the file, right-click on the file and select Properties. In the Properties window, click on the Security tab and then click on the Advanced button. In the Advanced Security Settings window, click on the Owner tab and then click on the Edit button. Select your username from the list and then check the Replace owner on subcontainers and objects box. Click Apply and then OK. Now try deleting the file again.

Step 4: Use Command Prompt to Force Delete the File

command prompt

If none of the above steps work, you can use the Command Prompt to force delete the file. To use the Command Prompt, open it as an administrator and navigate to the location of the file. Type the following command: del filename /f /q. Replace filename with the name of the file that you want to delete. The /f parameter is used to force delete the file and the /q parameter is used to suppress the confirmation message. Press Enter to execute the command. If the file is deleted, you will see a message "File deleted successfully".

Step 5: Use Third-Party Software to Force Delete the File

third-party software

If you are still unable to delete the file, you can use third-party software to force delete the file. There are many free software available on the internet that can help you force delete a file. Some of the popular software are Unlocker, FileASSASSIN, and Eraser. Download and install the software and then follow the instructions to force delete the file.

By following the above steps, you can easily force delete a file that is causing problems on your computer.

Related video of How to Force Delete a File in Easy Steps