![How to Fix the “Directory Is Not Empty” Error 0X80070091 in Windows 10 & 11](https://thmb.techidaily.com/38249dc1564a485522fb48e31e168d5147b5976c3d300d00e74bbaf1c0b88604.jpg)
How to Fix the “Directory Is Not Empty” Error 0X80070091 in Windows 10 & 11
![](/images/site-logo.png)
How to Fix the “Directory Is Not Empty” Error 0X80070091 in Windows 10 & 11
Error 0x80070091 is a File Explorer issue that occurs for some users when they try to delete folders in Windows 11/10. The error message says, “The directory is not empty,” and you can’t delete the folder that throws the error.
The 0x80070091 message suggests that the error occurs because a folder isn’t empty. Yet, you should be able to erase directories that contain files without any issues. Furthermore, that error can also arise for empty folders. If you’re seeing the same folder error 0x80070091 in Windows, try applying these potential fixes.
1. Try Erasing the Folder With the Command Prompt
The Command Prompt gives users another way to delete folders in Windows 11/10. So, you might be able to erase an affected folder without issues by using the Command Prompt. Using the Command Prompt might be more of a workaround, but at least you’ll get the folder deleted if works.
Run Command Prompt with elevated (administrative) rights. Our guide about running Command Prompt as an administrator includes numerous methods for launching that app. Then input this command and pressEnter to delete an affected folder:
rmdir /s "folder path"
You’ll need to replacefolder path in that command with the location of whatever directory you need to delete. The location should include a drive letter and a full path for the directory like in this example:
rmdir /s "C:\Users\New folder"
2. Restart Windows File Explorer
Restarting File Explorer can resolve issues that occur with that file manager. However, closing and reopening the Explorer window doesn’t restart the file manager. You’ll need to restart the Explorer process via Task Manager like this:
- To view Task Manager, pressCtrl +Shift +Esc simultaneously.
- Select File Explorer on theProcesses tab.
- Press theRestart button for the selected Explorer process.
3. Scan System Files With an SFC Scan
Error 0x80070091 can be caused by some corrupted system files that need repairing. Running an SFC scan might both detect and repair corrupted system files and fix error 0x80070091 in the process. You can scan with SFC as instructed in our post for running the System File Checker tool .
4. Check for Errors With a Disk Scan
The 0x80070091 error is often due to corrupted or bad hard drive sectors. A lot of users have said they’ve resolved that issue by using the Check Disk (CHKDSK) utility for repairing bad drive sectors. This is how you can check for and repair bad sectors with Check Disk:
- Open up the Command Prompt window with administrative rights.
- Type in this Check Disk command and pressEnter:
chkdsk /f /r C:
- PressY to schedule the scan for a restart.
- ClickStart and selectPower >Restart to reboot.
If the folder the 0x80070091 error occurs for isn’t on the C: drive, you’ll need to modify the above command. ReplaceC: with the letter of the storage drive that includes the affected folder.
5. Modify the Affected Folder’s Permissions
Error 0x80070091 can arise because of insufficient folder permission. You might need to set an affected folder to full permission to resolve error 0x80070091. To do that, change the folder’s permission settings as follows:
- Open Explorer and right-click the affected folder to selectProperties .
- Click the window’sSecurity tab.
- Next, press theAdvanced button.
- ClickChange beside the owner’s name.
Jet Profiler for MySQL, Enterprise Version: Jet Profiler for MySQL is real-time query performance and diagnostics tool for the MySQL database server. Its detailed query information, graphical interface and ease of use makes this a great tool for finding performance bottlenecks in your MySQL databases.
- Enter your Windows user account name inside the object name text box.
- Then select theCheck Names option andOK .
- ClickReplace owner on subcontainers and objects to select that setting.
- Press the Advanced Security Settings window’sApply andOK buttons.
6. Run an Antivirus Scan
Malware could also feasibly be causing error 0x80070091 on your PC. If you’re still trying to fix that issue after going through all the potential fixes above, run an antivirus scan with Windows Security or alternative third-party software. This is how to run a scan with the Windows Security app.
- Double-click aWindows Security (shield) icon in the system tray part of the taskbar.
- ClickVirus & threat protection >Scan options to view all options for scanning.
- Select the most thoroughFull Scan option, which could take more than an hour to finish.
PaperScan Professional: PaperScan Scanner Software is a powerful TWAIN & WIA scanning application centered on one idea: making document acquisition an unparalleled easy task for anyone.
- PressScan now to start the antivirus scanning.
- Then wait to see if the scan detects anything, and selectRemove if it does.
- ClickStart actions to apply.
Delete Your Folders in File Explorer Again With These Fixes
You’ll probably be able to delete the folders for which error 0x80070091 occurred after applying those potential solutions. If that error persists, the Windows registry on your PC could be corrupted. To resolve such registry issues, you might need to perform a system restore or even reset Windows 11/10.
Also read:
- [New] In 2024, Streamlining Workflow Efficient Tools for Screencast Creation
- [New] LG Digital Cinema 31MU97-B 4K Monitor Review
- [New] Web Conferences Archival for 2024
- [Updated] Unpacking the Multifaceted Nature of WireCast Tools
- 3 Ways to Adjust the Mouse Double-Click Speed on Windows
- 9 Best Phone Monitoring Apps for Nubia Z50S Pro | Dr.fone
- Activate/Deactivate SmartScreen Filter on Windows 11
- Adjusting Win11 Taskbar Icon Dimensions
- Advanced Techniques: Finding Out Charge Status (Win 10/11)
- Avoiding and Correcting Windows Security Faults in Windows 11
- Battle of the Packagers: Chocolatey or WM on Windows PCs
- Deciphering Error Messages Post Installed Application Failure
- Elevate Editing Skills: Mastering Jumps & Pastes
- From Viewers to Valuables Mastering Video Monetization on Vimeo for 2024
- How to Open WordPad in Windows
- How to Overcome MB Service Connections Problem on Win11 PC
- How to Rectify Cannot Link with NVIDIA in Windows 11
- How to Restore the Power of Your iPhone Flashlight with These 12 Fixes
- How to Turn Off Google Location to Stop Tracking You on Tecno Spark 10C | Dr.fone
- Immediate Actions for Resolving DirectDraw Failures on Windows 10/11
- In 2024, 5 Quick Methods to Bypass Oppo Reno 8T 5G FRP
- In 2024, Can You Unlock iPhone 13 Pro Max After Forgetting the Passcode?
- In 2024, Full Guide on Mirroring Your OnePlus 12 to Your PC/Mac | Dr.fone
- In 2024, Mastering Desktop Merging Images Seamlessly
- Inside Look: How To Reach WindowsStore Folder
- Map Masters Reveal Top Five For Gold Collection
- Maximizing Windows 11 Efficiency: The 5 Uptime Test Routines
- Method for Icon Position Restoration in WIndows
- Muting Windows Update Notifications
- Optimize Your Computer: No Need for Windows 11 Upgrades
- Overcome Chrome's File Uploading Frustrations on a PC
- Overcoming Screen Disruptions: Secure Smooth Play on W11 with Sonic Frontiers
- Preventing and Fixing Lost Steam Games Symbols
- Revisiting Microsoft's Phone Tethering for Windows 11 Users
- Stealth Mode: Disabling Windows Wi-Fi Broadcast
- Steps for Correcting Malwarebytes Call Failure in Win11/Win10
- Strategies for Fixing Steam File Connections Issue
- Strategies to Fix Absent App in Windows Filesystem
- Strategies to Prevent & Fix Windows Error Code 0Xc00000f
- Streamlining the Setup of New, Non-Operational Store Programs
- Tackling Error: Windows Welcome Can't Read Fingers
- Taking Flight with Windows Accessibility, Novice Style
- The Best Value in Premium 4K Viewing: Unveiling the Sony XBR-65X850F Review
- The Best Way to Setup Games on the Windows Xbox App
- Understanding Nearby Share for File Transfers
- Understanding the Impact of NTFS Compression on Data Saving
- Unlock PowerToy's Worldwide Mouse Capabilities
- Unlocking Windows 11 Internet Options
- Unmasking Windows' Hidden Chronicle - View, Clean Up!
- Voice Your Ideas, Type Them Out With OpenAI’s Whisper
- Win 11: Tackle Icons Not Aligned
- Your Missing Flight Tech (Copilot) in New OS?
- Title: How to Fix the “Directory Is Not Empty” Error 0X80070091 in Windows 10 & 11
- Author: Joseph
- Created at : 2024-08-15 15:52:47
- Updated at : 2024-08-16 15:52:47
- Link: https://windows11.techidaily.com/how-to-fix-the-directory-is-not-empty-error-0x80070091-in-windows-10-and-11/
- License: This work is licensed under CC BY-NC-SA 4.0.