11 Easy Methods to Force Delete a 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 various PC problems, we recommend Restoro PC Repair Tool:
This software will repair common computer errors, protect you from file loss, malware, hardware failure and optimize your PC for maximum performance. Fix PC issues and remove viruses now in 3 easy steps:

  1. Download Restoro PC Repair Tool that comes with Patented Technologies (patent available here).
  2. Click Start Scan to find Windows issues that could be causing PC problems.
  3. Click Repair All to fix issues affecting your computer's security and performance
  • Restoro 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?

This can be an annoying problem, and speaking of file removal, many Windows 10 users reported the following issues:

  • How to delete a folder that won’t delete
    • Sometimes you might encounter a folder that you’re unable to delete.
    • This can be a big problem, but you should be able to fix it using one of our solutions.
  • Can’t delete folder in use
    • Sometimes, you might get a message that the folder you’re trying to delete is 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.
    • If that’s the problem, the best solution is to rename the problematic file
    • 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.
  • Force delete folder Windows 10
    • These solutions act by overwriting any protocols so that the data is forcefully deleted.

How can I force delete a folder in 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 the folder using Command Prompt

  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 cleaner software.

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

You can use the Custom Cleanup option to fix the cannot delete files issue with CCleaner. Select what type of file you want to remove, and the software will automatically display a list of all these files.

Then you can select all of them or pick which one you want to remove. Finally, click the Run Cleaner button, and you are good to go.

If you want to remove duplicate files, select the Tools icon and click on the Duplicate Finder submenu. CCleaner can scan your whole PC for duplicates, but you can also pick a specific location.

When the scan is complete, you will get a list of all duplicate files that have been found. You can then delete them all in bulk or select individual files you want to remove.

CCleaner is an excellent solution to keep your PC running fast. It helps you clean your browser, remove temporary files, clean your registry, and more.

CCleaner

Use CCleaner to delete stubborn files and optimize your PC for exceptional performance.

Free trial Visit Website

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.

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.

Expert Tip: Some PC issues are hard to tackle, especially when it comes to corrupted repositories or missing Windows files. If you are having troubles fixing an error, your system may be partially broken. We recommend installing Restoro, a tool that will scan your machine and identify what the fault is.
Click here to download and start repairing.

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.

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 still can’t delete the folder, you can use the Windows Terminal to force delete the folder, using the command in solution 2.

How do I force delete a folder or file?

The easiest way to force delete a folder on Windows 10 is to use CMD. You only need to know the path of the folder and file you want to delete.

You can follow the steps in solution 2 of this guide to complete the process.

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.

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.

Windows 10 is a top-notch operating system with many improvements compared to its predecessors. However, it is not entirely free from the occasional errors and glitches.

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.


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.

idee restoro Still having issues? Fix them with this tool:
  1. Download this PC Repair Tool rated Great on TrustPilot.com (download starts on this page).
  2. Click Start Scan to find Windows issues that could be causing PC problems.
  3. Click Repair All to fix issues with Patented Technologies (Exclusive Discount for our readers).

Restoro has been downloaded by 0 readers this month.

This article covers:Topics: