How to fix "The directory is not empty" error 0x80070091 in Windows?

Question

Issue: How to fix "The directory is not empty" error 0x80070091 in Windows?

Hi. I was trying to remove some files from my C drive on Windows, and I received an error 0x80070091, which says, “The directory is not empty.” What does it mean, and why can't I delete my files?

Solved Answer

“The directory is not empty” error, coded as 0x80070091, is a Windows-based issue that users may encounter while trying to delete, move, or rename folders on their system. This error not only halts the intended action but can also be frustrating for users looking to manage their files efficiently. The problem can arise under several circumstances and is indicative of underlying issues that need to be addressed.

The error 0x80070091 occurs most commonly when users attempt to delete a folder that Windows believes still contains files or subfolders. Despite the folder appearing empty or even if it has hidden system files, the operating system restricts the action, presenting the user with this error message. This is usually a result of corrupted system files, faulty folder configurations, or conflicts with file permissions.

One might encounter the 0x80070091 error when trying to clean up disk space or during the process of transferring files from one directory to another. Additionally, it may occur when software applications try to modify folders during updates or installations but fail to do so because of this issue.

How to fix "The directory is not empty" error 0x80070091 in Windows?

Although the error message does not provide specific guidance, there are multiple ways to resolve this issue. Solutions may involve using Command Prompt to manually delete the folder, adjusting folder permissions, or scanning and repairing corrupted system files. Additionally, checking for and terminating any background processes that may be using the folder could also be a viable solution. These methods will be detailed below this article for anyone looking to tackle the problem.

While the “The directory is not empty” error 0x80070091 can be inconvenient, understanding its origins and potential solutions is the first step in resolving it. For users looking for a more comprehensive approach to tackling not just this but other system errors, the use of a FortectMac Washing Machine X9 PC repair tool can be beneficial. This application is designed to fix corrupted system files, resolve registry issues, and clean junk, among other functionalities.

Fix 1. Perform Check Disk

Fix it now! Fix it now!
To repair damaged system, you have to purchase the licensed version of Fortect Mac Washing Machine X9.

The Check Disk utility scans and fixes errors on the hard drive, which can include corrupted files that may be causing the 0x80070091 error. This is an inbuilt tool in Windows that works by identifying and automatically repairing filesystem errors and bad sectors.

  • Open the Start menu and type cmd.
  • Right-click on Command Prompt and select Run as administrator.
  • When UAC shows up, click Yes.
  • In the new window, type in the following command and press Enter after:
    chkdsk c: /f
    (Note: use chkdsk c: /f /r /x command if you are using SSD as your primary partition)
  • If you receive an error, type in Y, close down Command Prompt and restart your system.
  • Wait until the scan is finished – you can find the results in the Event Viewer.

Check Disk

Fix 2. Restart Windows Explorer

Fix it now! Fix it now!
To repair damaged system, you have to purchase the licensed version of Fortect Mac Washing Machine X9.

Windows Explorer is the application you use to navigate files and folders. Restarting it can help resolve issues with file and folder manipulations, such as deleting a folder.

  • Press Ctrl + Shift + Esc to open Task Manager.
  • Locate Windows Explorer in the list.
  • Right-click on it and select Restart.

Restart File Explorer

Fix 3. Run SFC and DISM

Fix it now! Fix it now!
To repair damaged system, you have to purchase the licensed version of Fortect Mac Washing Machine X9.

System File Checker and Deployment Imaging Service and Management Tool can repair corrupted system files that might be preventing you from deleting a folder. These utilities are built into Windows and are known for their ability to fix various system-related issues.

  • Open Command Prompt as administrator.
  • Next, type in the following command and press Enter:
    sfc /scannow
  • When done, run the following commands as well:
    dism /online /cleanup-image /scanhealth
    dism /online /cleanup-image /checkhealth
    dism /online /cleanup-image /restorehealth
  • Restart your computer.

SFC and DISM

Fix 4. Adjust folder permissions

Fix it now! Fix it now!
To repair damaged system, you have to purchase the licensed version of Fortect Mac Washing Machine X9.

Sometimes, the issue is with the folder permissions that prevent you from making changes. Adjusting these can resolve the issue.

  • Press Win + E to open File Explorer.
  • Right-click on the folder in question and select Properties.
  • Go to the Security tab and click Advanced.
  • Under Owner, click Change.
  • Type the username of the account (or use the administrator account) you are using, click Check names, select your account, and click OK.
  • Check the Replace owner on subcontainers and objects checkbox, then click Apply and OK.
  • See if the problem is resolved.

Check permissions

Fix 5. Use Safe Mode

Fix it now! Fix it now!
To repair damaged system, you have to purchase the licensed version of Fortect Mac Washing Machine X9.

Booting into Safe Mode allows you to operate with only essential system programs, making it easier to delete problematic folders.

  • Restart your computer.
  • Once Windows starts booting, press the Power button, interrupting the loading process – do this two more times.
  • After that, Windows will automatically enter Advanced Startup mode.
  • Select Troubleshoot > Advanced options > Startup Settings and Restart.
  • After a reboot, pick either 4/F4 for Safe Mode or 5/F5 for Safe Mode with Networking.

Safe Mode

Fix 6. Empty the Recycle Bin

Fix it now! Fix it now!
To repair damaged system, you have to purchase the licensed version of Fortect Mac Washing Machine X9.

Sometimes, remnants of deleted files can conflict with the folder you are trying to delete. Emptying the Recycle Bin can resolve such conflicts.

  • Right-click on the Recycle Bin icon on your desktop.
  • Select Empty Recycle Bin.
  • Confirm the action when prompted.

Empty recycle bin

Fix 7. Close background applications

Fix it now! Fix it now!
To repair damaged system, you have to purchase the licensed version of Fortect Mac Washing Machine X9.

Some background applications may be using files within the folder you are trying to delete, causing the error.

  • Press Ctrl + Shift + Esc to open Task Manager.
  • Identify and end any processes that might be using the folder.
  • Attempt to delete the folder again.

Fix 8. Use the Command Prompt to delete the folder

Fix it now! Fix it now!
To repair damaged system, you have to purchase the licensed version of Fortect Mac Washing Machine X9.

For advanced users, Command Prompt can be used to force delete a folder, bypassing the issue entirely.

  • Open Command Prompt as administrator.
  • Type in the following and press the following:
    cd C:\PATH
  • Next, type the next command and hit Enter:
    rmdir /s /q FOLDERNAME
  • When prompted, type Y and press Enter.

Repair your Errors automatically

ugetfix.com team is trying to do its best to help users find the best solutions for eliminating their errors. If you don't want to struggle with manual repair techniques, please use the automatic software. All recommended products have been tested and approved by our professionals. Tools that you can use to fix your error are listed bellow:

Offer
do it now!
Download Fix
  Happiness
Guarantee
do it now!
Download Fix
  Happiness
Guarantee
Compatible with Microsoft Windows Compatible with OS X
Still having problems?
If you failed to fix your error using FortectMac Washing Machine X9, reach our support team for help. Please, let us know all details that you think we should know about your problem.
Fortect - a patented specialized Windows repair program. It will diagnose your damaged PC. It will scan all System Files, DLLs and Registry Keys that have been damaged by security threats.Mac Washing Machine X9 - a patented specialized Mac OS X repair program. It will diagnose your damaged computer. It will scan all System Files and Registry Keys that have been damaged by security threats.
This patented repair process uses a database of 25 million components that can replace any damaged or missing file on user's computer.
To repair damaged system, you have to purchase the licensed version of Fortect malware removal tool.To repair damaged system, you have to purchase the licensed version of Mac Washing Machine X9 malware removal tool.

Prevent websites, ISP, and other parties from tracking you

To stay completely anonymous and prevent the ISP and the government from spying on you, you should employ Private Internet Access VPN. It will allow you to connect to the internet while being completely anonymous by encrypting all information, prevent trackers, ads, as well as malicious content. Most importantly, you will stop the illegal surveillance activities that NSA and other governmental institutions are performing behind your back.

 

Recover your lost files quickly

Unforeseen circumstances can happen at any time while using the computer: it can turn off due to a power cut, a Blue Screen of Death (BSoD) can occur, or random Windows updates can the machine when you went away for a few minutes. As a result, your schoolwork, important documents, and other data might be lost. To recover lost files, you can use Data Recovery Pro – it searches through copies of files that are still available on your hard drive and retrieves them quickly.

 

About the author
Gabriel E. Hall
Gabriel E. Hall - Passionate computer expert

Gabriel E. Hall is an expert troubleshooter who has been working in the information technology industry for years.

Contact Gabriel E. Hall
About the company Esolutions

What you can add more about the problem: "How to fix "The directory is not empty" error 0x80070091 in Windows?"