Error code 0x80070091, denoting “The directory is not empty,” can occur during various operations, such as deleting a folder or running a backup in Windows.
This error often poses a challenge to users of Windows 7, 10, 11, and Windows Server. This comprehensive, SEO-optimized guide will help you understand the causes of error 0x80070091 and provide troubleshooting steps.
Understanding Error 0x80070091
Error 0x80070091 often arises when Windows cannot complete a task because the target directory is not empty. This could be due to hidden files, system-protected items, or other instances where the system cannot interact with the directory’s content.
Causes of Error 0x80070091
This error may be caused by several factors:
- Hidden or System Files: If the directory contains hidden or system files, you might encounter this error when attempting to delete or modify the directory.
- Corrupted File System: Errors in the file system might cause Windows to misinterpret the status of a directory, leading to error 0x80070091.
- Faulty Software: Occasionally, specific software installations or updates might interfere with how Windows interacts with directories.
Resolving Error 0x80070091 in Windows 10 and 11
Below are some solutions to fix error 0x80070091 on Windows 10 and 11:
Use Command Prompt
Using Command Prompt allows you to bypass some system restrictions:
- Press Windows Key + X and select ‘Command Prompt (Admin)’ or ‘Windows PowerShell (Admin)’.
- Navigate to the parent folder of the directory causing the error using the
dir /ato display all files, including hidden ones.
- Delete any unusual or unwanted files using
- Try the operation again that was causing the error.
Use Windows Disk Cleanup
Windows Disk Cleanup can help remove unnecessary or problematic files:
- Press Windows Key + S, type ‘Disk Cleanup’, and open the application.
- Choose the drive containing the problematic directory and click ‘OK’.
- Select the file types you wish to delete and click ‘OK’.
- Attempt the operation again.
Resolving Error 0x80070091 in Windows 7
Use Safe Mode
Booting in Safe Mode in Windows 7 can help resolve this error:
- Restart your computer and press F8 during startup.
- Select ‘Safe Mode’ from the Advanced Boot Options.
- Once in Safe Mode, try to delete the folder or perform the task causing the error.
Resolving Error 0x80070091 in Windows Server
Windows Server users can also use the Command Prompt solution outlined above. Another effective solution is to use a third-party tool like Process Explorer to identify and close any processes that might be using the problematic directory.
Error 0x80070091, while frustrating, is often solvable through several methods, including using Command Prompt, booting in Safe Mode, running Disk Cleanup, or using third-party tools.
Remember to regularly back up your data and keep your system updated to minimize the chances of encountering such errors.
By understanding and applying these troubleshooting techniques, you can ensure a smoother, more efficient Windows experience.