Easy Solutions to Fix Error 0X80070091: The Directory Is Not Empty

How to Fix Error 0X80070091: 

One of the errors that can absolutely confuse you is the error code 0x80070091. This error is most of the time accompanied by the message, ‘An unexpected error is keeping you from deleting the folder. Error 0x80070091: The directory is not empty’. Of course, this error means that you can’t delete a folder that you attempted to delete, but what really caused it?

Common Reasons for the Error Code 0x80070091

  • You don’t have Admin rights to delete any file or folder
  • Computer hard drive has bad sectors
  • Corrupt or damaged drivers
  • Many junk files in the temporary locations folder

DIY Solutions for Error 0X80070091 The Directory Is Not Empty

This may look like a minor issue at the beginning, but you will just not be able to get work done if you have encountered this error. Here are DIY solutions that you can try out.

Solution 1: Simple troubleshooting steps

  1. Run a complete scan of the installed antivirus or malware program and check for any infections
  2. Check that you have Admin rights of the computer
  3. Restart and check if the error is fixed.

Solution 2: Remove Junk Files

  1. Press Win + X and open up menu
  2. Select ‘Command Prompt’ with Admin access
  3. Click ‘Yes’ to run the Command Prompt
  4. Type, ‘cleanmgr’ and hit ‘Enter’
  5. Check all the dialogue boxes with unnecessary files inclusive of temporary files
  6. Click ‘OK’ to remove all junk files
  7. Now attempt once more to delete a folder or file and check if the error persists.

Solution 3: Own the File or the Folder

  1. Click to open ‘Windows Explorer’
  2. Open the parent directory of the file or folder you want to delete
  3. Right click on the file or folder and then select Properties
  4. Click the Security tab> Advanced > Owner
  5. Change the file folder ownership to ‘New Owner’
  6. Select, ‘Replace Owner’ in both ‘Sub-container and Objects’
  7. Close and then once more attempt to delete the file or folder and check if the error persists.

 Solution 4: Run System File Checker

  1. Click ‘Start’
  2. Type ‘cmd’ in the ‘Search programs and files’ box
  3. Press CTRL+ Shift + Enter and then click ‘OK’ to open Command Prompt
  4. Type ‘chkdsk/f/r’ and then hit Enter
  5. Type ‘Y’ in the resultant window
  6. Restart the computer and allow the disk to check
  7. Once the tool has completed the task, check to see if the error has been fixed.

Solution 5: Run Disk Check Tool

  1. Press Win + X key and open ‘Menu’
  2. Select, ‘Command Prompt’ with Admin access
  3. Click ‘Yes’ to run Command Prompt
  4. Type ‘chkdsk C/f/r/x’ and press ‘Enter’
  5. Let the scan complete and then try deleting the file or folder once more to check if the error has been fixed.

Leave a Reply

Your email address will not be published. Required fields are marked *