Fix: The Directory is Not Empty Error 0x80070091

A number of Windows users have  identified a Windows Error “0x80070091 – The directory is not empty”, while trying to delete a folder.  Other users with the same error encountered this while transferring files from an external drive or during backup or imagine.  This error is present on Windows  7 PCs through to Windows 10.

It’s clear what the problem is exactly, but it’s mostly likely due to corrupted sectors on the external drive or corrupted files that cannot be deleted. In this article, we will provide known fixes to this error by fixing errors on the disk using the chkdsk utility, and then providing a workaround to delete folders that won’t delete.

Method 1: Running the chkdsk Utility

  1. Click the Start button, type cmd, right-click on the cmd utility and select Run as Administrator. This opens the Windows command line tool. Grant UAC access if you’re prompted to do.
  2. Before you do, find the external drive you’re facing issues with and identify it’s drive letter. You can do this by pressing the Windows + E keys to open My Computer/This PC.
  3. In the command prompt, type the following command and press enter.
    chkdsk /f /r Z:
    Where Z: is the name of your external drive letter.
  4. Press Y and then Enter when you’re prompted in the prompt to check the disk on the next reboot.
  5. Close all your applications and then restart your computer. Wait while your disk is checked and repaired. Your problem should be solved when your PC is back online. Try copying again to see if the issue was solved.

Method 2: Workarounds

We’ll look into two workarounds, which are adding a excel file in the problem folder and then deleting that folder, and also prefixing the problem folder name with a ! sign and then deleting the folder.

Workaround 1

  1. Create a new Excel file in the folder failing to delete.
  2. Select the problematic folder and press the Del or Shift + Del keys.

Workaround 2

  1. Right-click on the problematic folder and click rename. Append ! to the beginning of the folder name.
  2. Select that folder and press the Del or Shift + Del keys.
ABOUT THE AUTHOR

Kevin Arrows


Kevin Arrows is a highly experienced and knowledgeable technology specialist with over a decade of industry experience. He holds a Microsoft Certified Technology Specialist (MCTS) certification and has a deep passion for staying up-to-date on the latest tech developments. Kevin has written extensively on a wide range of tech-related topics, showcasing his expertise and knowledge in areas such as software development, cybersecurity, and cloud computing. His contributions to the tech field have been widely recognized and respected by his peers, and he is highly regarded for his ability to explain complex technical concepts in a clear and concise manner.