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.

Kevin Arrows

Kevin is a dynamic and self-motivated information technology professional, with a Thorough knowledge of all facets pertaining to network infrastructure design, implementation and administration. Superior record of delivering simultaneous large-scale mission critical projects on time and under budget.
Back to top button

Expert Tip

Fix: The Directory is Not Empty Error 0x80070091

If the issue is with your Computer or a Laptop you should try using Restoro which can scan the repositories and replace corrupt and missing files. This works in most cases, where the issue is originated due to a system corruption. You can download Restoro by clicking the Download button below.

Download Now

I'm not interested