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
- To own your file or folder in your computer, the first step that you have to do is to open Windows Explorer.
- After that, open the parent directory of the file or folder which you want to delete.
- Now, right click on the file or folder and then choose its properties.
- In this stage, you have to click on its Security tab and then Advanced and choose Owner.
- Change the ownership of file or folder into New Owner.
- Choose Replace Owner in both Sub-container and Objects.
- 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
- 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.
- 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.
- After it is done, click the Clean up system files button.
- Now, you have to repeat the step 3 above.
- Then, choose the Previous Windows Installations box to check it and click OK.
- At last, click on Delete Files. Wait until Disk Cleanup is done, and the C:\Windows.old folder will be deleted.
- 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.