Fix Error 0x80070091: “Directory is Not Empty” Issue on Windows 10 and 11

October 9, 2025
Written By Digital Crafter Team

 

Have you ever tried to delete a folder on your Windows 10 or 11 PC and been met with an annoying error that says: “Error 0x80070091: The directory is not empty”? If yes, you’re not alone. This is one of those stubborn Windows errors that makes you want to throw your computer across the room.

But don’t do that. We’ll walk you through this error in a super-simple, step-by-step way. And we’ll even have a little fun as we clean up your digital mess.

What Does Error 0x80070091 Mean?

Let’s break it down. When Windows says the directory is not empty, it basically means:

  • “Hey, I can’t delete this folder because there are still some files in it.”
  • Or worse, there may be system files or corrupted files that refuse to go quietly.

It usually happens when:

  • You try to delete or move a folder.
  • You attempt to uninstall a program.
  • Or during a system restore.

This error likes to act mysterious, but don’t worry—we’re going to banish it.

First, the Quick Fixes

Let’s start with easy stuff before getting too technical. Grab your digital broom!

1. Just Restart Your PC

Yes, it sounds basic. But sometimes a simple restart is all it needs. Something might be using the folder in the background. Restart your computer and try again to delete it.

2. Try Deleting in Safe Mode

Safe Mode is like entering “stealth mode.” Windows boots with minimal stuff running. Here’s how to do it:

  1. Press Win + R, type msconfig, and press Enter.
  2. Click the Boot tab.
  3. Check Safe boot and select Minimal.
  4. Click Apply, then OK, and restart.

Once you’re in Safe Mode, try deleting the stubborn folder again.

Don’t forget to go back to msconfig and uncheck “Safe boot” after you’re done.

3. Use the Command Prompt Like a Pro

Feeling brave? Let’s pull out the big guns: Command Prompt. 😎

Follow these steps:

  1. Click on Start, type cmd, then right-click and choose Run as administrator.
  2. Now type the following command and press Enter:
rd /s /q "C:\Path\To\Folder"

Replace C:\Path\To\Folder with the actual path of the folder you’re trying to delete. For example:

rd /s /q "C:\Users\Alex\Documents\OldStuff"

This command will *force* delete the folder and everything in it.

If The Problem Still Won’t Go Away

Okay, now it’s time to dig a little deeper if those quick methods haven’t beaten the bug.

4. Use CHKDSK to Fix Disk Errors

CHKDSK stands for “Check Disk.” It can find and fix those sneaky issues that prevent deleting files.

Here’s how to use it:

  1. Open Command Prompt as Admin again.
  2. Type this and hit Enter:
chkdsk C: /f /r /x

This tells Windows to check drive C for errors and fix them. If the folder is on another drive, change “C:” to that letter.

Your PC may ask to run CHKDSK when you restart. Type Y and reboot.

5. Try a Free File Unlocker Tool

Sometimes programs grab on to a folder and just won’t let go. You can use free software like:

These tools show you what’s locking the file and let you force-delete it—as if you’re a digital locksmith. 🔐

6. Rename the Folder First

Yep—just give it a new name. Weirdly, sometimes renaming makes Windows forget its old problems.

Try this:

  1. Right-click the folder.
  2. Select Rename and give it a name like DeleteMe123.
  3. Now try deleting it again. Often, it works!

What if the Error Pops Up During System Restore?

If you’re seeing error 0x80070091 while trying to roll back your system using Restore Point—don’t panic. There’s a fix for that too.

Use Command Prompt to Rename a Troubled Folder

Here’s how:

  1. Start your system in Safe Mode with Command Prompt.
  2. In the black window that opens, type:
cd C:\ProgramData\Microsoft\Windows\Start Menu\Programs\System Tools

Then rename the folder that’s causing a fuss. For example:

ren WindowsApps WindowsApps.old

After renaming “WindowsApps”, try the system restore again. It should work now.

Bonus Tip: Take Ownership of the Folder

Sometimes you’re locked out of your own files. Let’s take back control.

  1. Right-click the folder, choose Properties.
  2. Click the Security tab, then Advanced.
  3. Next to Owner, click Change.
  4. Type your username and click Check Names.
  5. Click OK, then enable “Replace owner on subcontainers and objects.”
  6. Now hit Apply and OK.

Try deleting the folder again. It should cooperate now!

Still Stuck? It Might Be Malware 🐛

Some malware files sneak into folders and prevent deletion. In that case:

  • Run a full scan using Windows Defender or your antivirus.
  • Consider using Malwarebytes for deep cleaning.

Once the system is clean, you can retry the deletion steps.

Final Thoughts

We get it—error 0x80070091 can be ridiculously annoying. But now, you’ve got a toolbox full of tricks to fix it. You tried Safe Mode, Command Prompt magic, renaming, ownership tricks, and maybe even called in some software help.

Most importantly—you didn’t throw your PC out the window. That deserves a high-five. 🖐️

Next time Windows acts sassy, you know what to do. Happy cleaning!

Leave a Comment