How to Fix Error 0x80070091: The Directory is not empty

Posted on

Perhaps you have experienced that you can not delete some folders or files from your computer which then you get a notification that says the operation could not be executed due to an unexpected error. In addition, you get an error code 0x80070091 which is followed by a message: the directory is not empty.

You may be confused what the meaning of this message is and you do not know what to do. Well, actually this error can occur because of some reasons that you can read below.

  • The drivers are damaged or corrupt.
  • There are too much junk files in the temporary locations folders.
  • Hard drive of your computer has bad sectors.
  • You do not own administrative rights to the computer and it prevents you from deleting any file or even folder.

For sure, you want to get rid of this error 0x80070091. Here, we have some ways to fix this error. You can do that by following the steps of each method below.

Own The File or Folder

  1. To own your file or folder in your computer, the first step that you have to do is to open Windows Explorer.
  2. After that, open the parent directory of the file or folder which you want to delete.
  3. Now, right click on the file or folder and then choose its properties.
  4. In this stage, you have to click on its Security tab and then Advanced and choose Owner.
  5. Change the ownership of file or folder into New Owner.
  6. Choose Replace Owner in both Sub-container and Objects.
  7. At last, you can close and then try to delete the folder or file to check if the problem is resolved.

Delete Windows.old Folder

  1. Firstly, you have to start Disk Cleanup. Hit the combination of Windows key and R and then type C:\windows\SYSTEM32\cleanmgr.exeand then hit Enter.
  2. In this stage, you have to select the drive that you want to clean up and click OK. Disk Cleanup will begin to run automatically and will count the used space that you can claim on the hard disk. This process will take some time to complete, so you have to wait.
  3. After it is done, click the Clean up system files button.
  4. Now, you have to repeat the step 3 above.
  5. Then, choose the Previous Windows Installations box to check it and click OK.
  6. At last, click on Delete Files. Wait until Disk Cleanup is done, and the C:\Windows.old folder will be deleted.
  7. Now, you can try again to delete file or folder that you want to delete to see if this error is gone or not.

Okay, we have given you two methods of getting rid of error code 0x80070091. If you face this error in your computer, you can try to apply these methods to fix that. Thank you for reading this article and do not forget to share this to others.

Leave a Reply

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