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
- Run a complete scan of the installed antivirus or malware program and check for any infections
- Check that you have Admin rights of the computer
- Restart and check if the error is fixed.
Solution 2: Remove Junk Files
- Press Win + X and open up menu
- Select ‘Command Prompt’ with Admin access
- Click ‘Yes’ to run the Command Prompt
- Type, ‘cleanmgr’ and hit ‘Enter’
- Check all the dialogue boxes with unnecessary files inclusive of temporary files
- Click ‘OK’ to remove all junk files
- Now attempt once more to delete a folder or file and check if the error persists.
Solution 3: Own the File or the Folder
- Click to open ‘Windows Explorer’
- Open the parent directory of the file or folder you want to delete
- Right click on the file or folder and then select Properties
- Click the Security tab> Advanced > Owner
- Change the file folder ownership to ‘New Owner’
- Select, ‘Replace Owner’ in both ‘Sub-container and Objects’
- Close and then once more attempt to delete the file or folder and check if the error persists.
Solution 4: Run System File Checker
- Click ‘Start’
- Type ‘cmd’ in the ‘Search programs and files’ box
- Press CTRL+ Shift + Enter and then click ‘OK’ to open Command Prompt
- Type ‘chkdsk/f/r’ and then hit Enter
- Type ‘Y’ in the resultant window
- Restart the computer and allow the disk to check
- Once the tool has completed the task, check to see if the error has been fixed.
Solution 5: Run Disk Check Tool
- Press Win + X key and open ‘Menu’
- Select, ‘Command Prompt’ with Admin access
- Click ‘Yes’ to run Command Prompt
- Type ‘chkdsk C/f/r/x’ and press ‘Enter’
- Let the scan complete and then try deleting the file or folder once more to check if the error has been fixed.