Can’t Delete Folder? How to Force Delete Folder in Windows 10

Learn how to get rid of unwanted files on your device

by Ivan Jenic
Ivan Jenic
Ivan Jenic
Troubleshooting Expert
Passionate about all elements related to Windows and combined with his innate curiosity, Ivan has delved deep into understanding this operating system, with a specialization in drivers and... read more
Reviewed by Vlad Turiceanu
Vlad Turiceanu
Vlad Turiceanu
Editor-in-Chief
Passionate about technology, Windows, and everything that has a power button, he spent most of his time developing new skills and learning more about the tech world. Coming... read more
Affiliate Disclosure
  • When you cannot delete a folder, the OS is blocked from responding to your commands.
  • A possible solution for this issue is to restart your system and try deleting the folder again.
  • Another fix for this annoying issue is to use a third-party tool to solve the problem.
 
 
XINSTALL BY CLICKING THE DOWNLOAD FILE
To fix Windows PC system issues, you will need a dedicated tool Fortect is a tool that does not simply clean up your PC, but has a repository with several millions of Windows System files stored in their initial version. When your PC encounters a problem, Fortect will fix it for you, by replacing bad files with fresh versions. To fix your current PC issue, here are the steps you need to take:
  1. Download Fortect and install it on your PC.
  2. Start the tool's scanning process to look for corrupt files that are the source of your problem
  3. Right-click on Start Repair so the tool could start the fixing algorythm
  • Fortect has been downloaded by 0 readers this month.

Among the prominent errors on this OS are folders and files issues, with users complaining that they couldn’t rename folders on Windows 10 in the past. Now, many people are having problems deleting some files or folders.

This guide contains straightforward and effective fixes that help you delete even the most stubborn folders on Windows 10 and 11. You only need to follow the instructions, and you will be fine.

Why can’t I delete a folder on Windows 10?

Here are some of the most common causes that prevent you from deleting a folder in Windows 10:

  • Can’t delete folder in use – To fix the problem, you need to close all applications that might be using this directory. We covered a similar problem in our File in use error article, so check it out for more information.
  • Cannot delete file access denied – This error message can appear if you don’t have the necessary privileges to delete a specific file or folder. Change your security permissions, and you can force delete the file.
  • Can’t delete folder open in another program – By default, Windows prevents you from deleting files currently used by other applications. To fix this error, ensure that other applications aren’t using that file.
  • Can’t delete files with long names – Windows can’t work well with files that exceed a specific character limit. We explained how to force delete a folder in Windows 10 with long file names in our The filename or extension is too long article, so be sure to check it out for more information.
  • Can’t delete files need permission – This is just a variation of this error, but in most cases, you can fix it simply by changing your security permissions.
  • Can’t delete folder Windows 10 could not find this item, no longer located – This happens when the folder has been already deleted, but the icon still shows up.
  • Can’t delete folder Windows 10 as administrator – You can enter Safe Mode then try again to delete the folder as an admin.
  • Force delete folder Windows 10 the directory is not empty – Check out our 7th solution to learn how to force delete a folder.

Without further ado, let’s jump right in!

In this article

How do I delete a folder that won’t delete Windows 10?

1. Reboot your system

Sometimes, you need to restart your machine, and the problem will disappear.

Unresponsiveness doesn’t just happen in this case; for example, many people reported that they could not open the start menu sometimes, but when they restart their computer, everything works fine.

But if restarting your PC didn’t solve the problem, you can try one of the following solutions.

2. Force delete folder in Windows 10 using CMD

  1. Press the Windows key and type cmd.

2. Right-click on Command Prompt and select Run as administrator.

3. Enter del, followed by the path of the folder or file you want to delete, as shown in the command below: del c:usersJohnDoeDesktoptext.txt

4. Press Enter to run the command.

5. You can repeat the process for all files and folders that you can’t delete by normal means.

If you tried the traditional or removing a folder and it failed, then you need to force delete it. The easiest way to force delete a folder that won’t delete in Windows 10 is via Command Prompt, also known as cmd.

All you need to do is open the tool and input into it a command to remove the folder you want to get rid of, and it will do the job for it.

This method also works for other command line tools such as Powershell, in case you don’t have Command Prompt on your device.

3. Use a specialized PC cleaning software

If this is a recurring problem and you do not have the time necessary to try out different possible tricks to fix it, we recommend you use dedicated PC maintenance and optimization software.

One of the best tools of this kind is Fortect because it is fast and easy to use. The tool can run a complete scan of your PC and remove any unnecessary clutter.

When the scan is complete, you will get a diagnostic report of all the impediments that have been found, including duplicate and built-up files.

Afterward, Fortect will delete the clogged files and repair any broken components which will boost your system’s health instantly.

Fortect is an excellent solution to keep your PC running fast. It helps you clean your browser, remove temporary files, refresh your operating system, and more.

Fortect

Use Fortect to delete stubborn files and optimize your computer for exceptional performance.
Free Trial Download now

4. Change the Ownership of the file/folder

  1. Right-click on the file you want to delete and choose Properties.
    Can't delete folder in use
  2. Under the Security tab, click the Advanced button.
    Cannot delete file access denied
  3. The Advanced Security Settings window will appear, and you’ll spot the owner.
  4. In some cases, SYSTEM is listed as the owner, and in some, it is TrustedInstaller.
  5. Click on the Change option next to the name of the owner.
    How to delete a folder that won't delete
  6. Enter the username you want to become the file owner and click the Check Names button.
  7. Now, click the OK button.
    Can't delete folder in use
  8. Check the box for Replace owner on subcontainers and objects.
  9. Now, click the Apply button.
  10. Close Windows Security Properties (Windows will require a restart).
  11. Now, right-click the file again, and select Properties>Security>Advanced.
    advanced security cant delete folder
  12. Check the box for Replace all child object permission entries with inheritable permission entries from this object.
    replace all cant delete folder
  13. After that, click Edit.
    Cannot delete file access denied
  14. In the Permission Entry window, check Full Control and hit OK.
    Can't delete folder open in another program
  15. Try to delete the file/folder again.

We have a more in-depth guide on taking full ownership of a file or folder in case you need more information.

5. Check your antivirus

Antivirus software is necessary, and many antivirus tools have helpful features that protect your files. Thanks to this feature, malicious applications and users won’t be able to delete your files.

Even though this feature is valid, it can also stop you from deleting a folder even though you’re an administrator on Windows 10.

Expert tip:

SPONSORED

Some PC issues are hard to tackle, especially when it comes to missing or corrupted system files and repositories of your Windows.
Be sure to use a dedicated tool, such as Fortect, which will scan and replace your broken files with their fresh versions from its repository.

To fix this problem, check your antivirus settings and see if this feature is enabled. If so, disable it for the files you want to delete and check if that solves the issue.

If you can’t find this feature, you can remove your antivirus and check if that helps.

If removing the antivirus solves the problem, you should consider switching to a different antivirus solution in ESET NOD32.

It is reliable security software that can protect your PC and, of course, the essential files on your PC. This light resource software can also increase malware protection without affecting other system services.

Hence, switch your security utility to a reliable antivirus with a high detection rate. Protect your system while you keep all the usage right for your PC.

6. Enable the hidden administrator account

The problem might be the lack of security privileges if you can’t delete a specific folder on a desktop or other locations. However, you can always try removing those files using a hidden administrator account.

Windows 10 has a hidden administrator account, which you can use to fix various problems.

We already wrote about this account in the past. If you need more information, check our article on how to enable the hidden administrator account for more details.

7. Use third-party software to remove locked files

  1. The third-party software is recommended because it can unlock and remove locked files from your PC. You can choose specific files, file types, and folders to be included in Cleaner operations.Delete files and folders with CCleaner
  2. To include files and folders in the cleaning process, you must select Custom Files and Folders and check the box on the list of the options screen.
  3. You can then add separate Include statements (as many as necessary) by following these steps each time:
    • Click the Options icon from the left sidebar.
    • Hit the Include button.
    • Add a new include statement by clicking Add.
    • Complete details in the Include dialog box.

Alternatively, you can utilize PC repairing software to help you repair various Windows issues in your system. This is how you can force delete a folder in Windows 10 with software.

8. Remove AMD Uninstall Utility

Sometimes, third-party applications can cause this problem to appear. For example, if you can’t delete files or folders on your PC, the issue might be caused by the AMD Uninstall Utility.

Find this application on your PC and remove it to fix this problem. There are several ways to do that, but the best way is to use uninstaller software.

These tools are designed to remove applications and all files and registry entries associated with the desired application.

After completely removing the problematic application, the issue should be resolved, and you’ll be able to delete files again.

9. Use Microsoft’s Troubleshooter

  1. Download the troubleshooter.
  2. Start the troubleshooter and click Next.
    Can't delete files with long names
  3. Follow the instructions on the screen to complete the troubleshooting process.

After the troubleshooter is finished, check if the problem persists.

10. Use Safe Mode

  1. Open the Start Menu.
  2. Click the Power button.
  3. Press and hold the Shift key and choose Restart from the menu.
    How to delete a folder that won't delete
  4. Wait for your PC to restart and select Troubleshoot.
  5. Select Advanced options and click on Startup Settings.
  6. Now, click the Restart button.
  7. Select any version of Safe Mode by pressing the appropriate keyboard key.

Once you enter Safe Mode, try to delete the problematic file or directory again.

Keep in mind that this is just a workaround, but it can be helpful if you need to remove just a couple of files or folders from a specific directory.

If you can’t boot into Safe Mode, you can try doing it from the Power Menu or with the help of third-party software.

11. Use the chkdsk command in cmd to check for PC errors

  1. Run Command Prompt as administrator, as shown in solution 3.
  2. Type the following command and press Enter to run: chkdsk /f
  3. Click YES when prompted if you want to run it at the next start.
  4. Restart your PC.

The chkdsk scan will fix any potential errors, and some users reported fixing this problem after performing it, so make sure you try it.

What should I do if I can’t delete a folder on Windows 11?

If you can’t delete a folder on Windows 11, it might be because you lack permission. You can fix this by following the steps shown in this guide.

If you can’t delete a folder on Windows 10 and 11, it denies you the opportunity to create space for other files. But with the fixes in this guide, you should be able to do it quickly.

Similarly, if you need efficient software to force delete undeletable files, you can check our excellent guide on the topic for the top options available.

Among the prominent errors on this OS are folders and files issues, with users complaining that they couldn’t rename folders on Windows 10 in the past. Now, many people are having problems deleting some files or folders.

If you have some alternate solutions for this problem and want to share them with us, please write them down in the comments below. Our readers would love to read it.

This article covers:Topics: