🚀 NEW in v2.4.29: 35+ Speed Optimizations added today!Download Now →

Home/Fix/Fix Error 0x80070091 — Directory Is Not Empty

How to Fix Fix Error 0x80070091 — Directory Is Not Empty on Windows

Getting error 0x80070091 "The directory is not empty" when deleting folders, System Restore, or during Windows operations? Fix this file system error.

📖

Main Troubleshooting Guide

How to Fix 100% Disk Usage

Complete symptoms, causes, and step-by-step solutions

Symptoms

You might be experiencing this problem if you notice:

  • System Restore fails with error 0x80070091
  • "The directory is not empty" when trying to delete a folder
  • Can't delete folder — error 0x80070091 even when folder appears empty
  • Windows Update fails with this error during cleanup
  • Folder stuck and can't be renamed, moved, or deleted
  • Recycle Bin shows this error when emptying

Common Causes

  • Hidden or system files inside the folder preventing deletion
  • File or folder locked by a running process
  • NTFS permissions preventing access to contents
  • Corrupted folder entry in NTFS file table
  • Antivirus quarantine holding files inside the folder
  • Windows Restore Point containing files in that directory

Solutions

Solution 1: Fix System Restore Error 0x80070091

  1. 1This commonly happens when System Restore can't process the WindowsApps folder:
  2. 2Boot into Safe Mode (Settings → Recovery → Advanced startup → Safe Mode)
  3. 3Navigate to C:\Program Files\WindowsApps
  4. 4Rename the "WindowsApps" folder to "WindowsApps.old"
  5. 5Try System Restore again — should succeed now
  6. 6After successful restore: delete the .old folder
  7. 7If you can't access WindowsApps: take ownership first (takeown /f /r)

Solution 2: Force Delete Stubborn Folder

  1. 1CMD as Administrator:
  2. 2rd /s /q "C:\path\to\folder"
  3. 3If that fails: check what's locking it:
  4. 4Resource Monitor → CPU tab → Associated Handles → search folder name
  5. 5End the locking process, then try deleting again
  6. 6Or reboot into Safe Mode and delete from there
  7. 7PowerShell: Remove-Item -Path "C:\path" -Recurse -Force

Solution 3: Fix Corrupted Folder

  1. 1If the folder appears empty but won't delete:
  2. 2Show hidden files: File Explorer → View → Hidden items
  3. 3CMD: dir /a "C:\path\to\folder" (shows ALL files including hidden/system)
  4. 4Run chkdsk to fix NTFS corruption:
  5. 5chkdsk C: /f /r (requires restart for C: drive)
  6. 6This scans and repairs file system errors
  7. 7After chkdsk: try deleting the folder again
FIXES THIS IN 5 MINUTES

Fix Fix Error 0x80070091 — Directory Is Not Empty Automatically

RescuePC Toolkit includes 109+ automated repairs that fix this problem with one click. No command line knowledge required.

Download Now - Free Trial

No credit card required • Works on Windows 10 & 11

Automated Repairs for This Issue

Browse More System & Core Features Guides

Share this:XRedditLinkedInEmail