If you find that the file cannot be deleted in the Windows error code, today’s blog post is written to help you.
- Go to Start, type Task Manager and select Task Manager to open it.
- Find the application that is currently using the file and select End task.
- Then try deleting the file on your Windows PC again.
You can try deleting files that cannot be deleted in Windows 10 from the command line
1. You can press Windows R keys on your keyboard, type cmd and press Ctrl Shift Enter to launch Windows Command Prompt as administrator.
2. Then enter the file name del / f at the command prompt and press Enter to force the file to be deleted in Windows 10 using CMD.
Reason 1: The File Is Using ACL
You may not be able to delete a file if it uses an Access Control List (ACL). To resolve this issue, change the file permissions. You may need to take ownership of the files to change permissions.
Administrators have the implicit ability to own a file even if they have not been given explicit permission to access the file. File owners have the implicit ability to change file permissions even if they have not been given explicit file permissions. Thus, you may need to own the file, give yourself permission to delete the file, and then delete the file.
Method 1. Close Applications
Often a problem with a file that is notUnable to delete, may be caused by the application that is currently using the file. You may not be aware that this software does this, but the easiest way to fix this problem is to close all open applications on your computer.
When everything doesn’t work, try deleting the file and hopefully you find that it will now disappear without further issue.
Method 2. Close Windows Explorer.
While closing all your applications often helps, it’s also possible that Windows Explorer, also known as File Explorer, is frozen.
To close this, you need to open the Task Manager (right click on the taskbar and select it from the context menu) and scroll down until you find Windows Explorer. Right-click it, then choose End Task from the menu.
Method 3. Restart Windows.
Before delving into more advanced methods, try restarting your computer as well. This is hardly scientific, but from time to time applications or even Windows itself can enter a strange state that affects its performance y. In many cases, a quick restart can solve these problems.
Method 4. Use Safe Mode.
If you don’t like any of the above methods, the next step is to use Safe Mode in Windows. In this case, only the operating system itself and a minimum of files and drivers are loaded. If the file you want to delete is locked in some way, it can be made available again in Safe Mode.
Follow the instructions for starting Windows 10 in safe mode for more information. If you are using Windows 7, just restart your computer and keep pressing F8 while restarting.
Now go to the file and try to delete it. If things go well, he should accept his ban without complaint.
Method 5. Use Software To Uninstall The Software.
If the file remains permanently indelible, it may be time to purchase a third-party application that specializes in this area. Some options are File Assassin, Long Path Tool, and Microsoft’s Process Explorer.
The last one is the imppaid and widely known as an excellent file removal tool for unlocking. Download and install Process Explorer on your computer.
Run the application and you will see a window very similar to the standard Windows Explorer. Go to File in the upper left corner and select Show details of all processes.
You can now scroll through the list until you find the file. However, the quickest way to do this is to click the Find option in the menu bar at the top of the window and then select Find Handle or select DLL.
Enter a filename in the search bar and click Search. When the file name appears, click it and the details will open in another Process Explorer window.
Now right-click on the file list in the Process Explorer window and you have two options: close handle and properties.
Select Close Handle and the application will unlock the file with. You may need to repeat this last step if the file is in more than one application.
Once this is done, you can permanently delete the file.
If youIf you want to clean up your hard drive even more, check out How to remove duplicate files in Windows and uninstall programs in Windows 10.