We all have a lot of files and folders stored on our Windows PC, and deleting them was easy; all we had to do was right-click on the files and select Delete.

However, the problem occurs when some files or folders fail to delete. Many Windows users have tried to delete files or folders without success. It is a common problem and might have happened to everyone.

Generally, Windows locks files and folders that it feels necessary to work properly. Thus, if you attempt to delete those files, you will fail. Sometimes, the malware also prevents you from deleting files & folders.

Methods to Delete Undeletable Files and Folders in Windows 10

So, if you are trying to delete a file or folder without any success on Windows, you are reading the right guide. In this article, we will share the few best methods to force delete undeletable files & folders in Windows.

1. Using The Command Prompt

With the command prompt, you can delete any file or folder on the Windows 10 operating system. Here’s how to use the Command prompt to delete undeletable files.

1. First of all, open the Windows Search box.

open the Windows Search box

2. On the Windows Search box, search for CMD

search for 'CMD'

3. Right-click on the ‘CMD’ and select the option Run as administrator

select the option 'Run as administrator'

4. Now, you need to navigate to the folder where the file is stored.

Find file path in Windows: Right Click > Properties > Details

find file path To navigate the folder, use the command:

cd folderpath

Execute the command

Note: Replace ‘folderpath’ with the actual path where the file is stored. For example, cd C:\Users\techviral\desktop

5. After navigating to the folder, you need to execute the delete command. Execute the command given below.

del /f /s <filename>

Execute the command

Note: Replace the <filename> with the file’s actual name. Also, put the extension of the file type. For example, del /f /s notepad.txt

6. Now, on the Command prompt, type ‘Y’ and press the Enter button.

Deleted file

That’s it! You are done. This is how you can delete locked files in Windows 10 via Command Prompt.

2. Using IObit Unlocker

IObit Unlocker is a powerful tool designed to fix file & folder lock problems. It does so by terminating all related processes that prevent you from deleting or accessing files/folders that you need to. Here’s how you can use IObit Unlocker to delete undeletable files.

1. First of all, download & install IObit Unlocker on your Windows computer. You can follow this link to download the tool.

Using iOBit Unlocker

2. Now open the tool, and you will see an interface like below. You can either drag and drop the file which you want to delete or right-click on the file and select ‘iObit unlocker’

Using iOBit Unlocker

3. Once added, you need to check the ‘Forced Mode’ and then from the drop-down menu, select ‘Unlock & Delete’

Using iOBit Unlocker

That’s it; you are done! This is how you can use IObit Unlocker to delete undeletable files and folders from the Windows computer.

3. Third-party Softwares

Like the above two programs, you can use other tools to delete undeletable files & folders in Windows. Below, we have shared some of the best third-party software to force delete files & folders in Windows.

1. Unlocker


Unlocker is a simple tool that lets you get rid of stubborn files that can’t be deleted in the standard way. Deleting a file from your computer isn’t always as easy as it seems.

Have you ever got an irritating error message telling you that the file is being used by another application and can’t be erased? Unlocker is the solution.

2. XL Delete

XL Delete

XL Delete is a powerful, secure delete tool that permanently deletes your sensitive and private files using its powerful wipe engine.

Apart from that, XL Delete can permanently remove any type of file, entire folders, and even your Internet cookies, history, and cache files.

3. LockHunter


Lockhunter is one of the best Windows tools which you can use to delete stubborn files and folders. The tool can effectively scan and detect malware that prevents the files from deleting.

The great thing about Lockhunter is that it deletes the files into the recycle bin, so users get the option to restore them if deleted by mistake.

4. NoVirusThanks File Governor

NoVirusThanks File Governor

NoVirusThanks File Governor is one of the most advanced tools that allow users to unlock files and folders due to some malware or virus attack.

The tool shows whether the file you are trying to delete is used by any other program or user, or if the source or destination files are in used, etc. After knowing the reason, users could fix it quickly and delete stubborn files.

5. EMCO UnLock IT


EMCO UnLock IT is another free tool that can help you to delete undeletable files and folders from your Windows computer. The tool works similarly to the NoVirusThanks File Governor, and it detects a list of locking processes and eventually allows to unlock the resource by closing file and library handles.

If you are still not able to delete any file or folder, you might need to restore your operating system to a previous state. In the worst case, you might even need to reset your Windows 10 PC. I hope this article helped you! Please share it with your friends also.