How To Fix “Error 0x80070091” In Windows 7, 10, 11, and Windows Server

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.

Error 0x80070091

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:

  1. 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.
  2. Corrupted File System: Errors in the file system might cause Windows to misinterpret the status of a directory, leading to error 0x80070091.
  3. 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:

  1. Press Windows Key + X and select ‘Command Prompt (Admin)’ or ‘Windows PowerShell (Admin)’.
  2. Navigate to the parent folder of the directory causing the error using the cd command.
  3. Use dir /a to display all files, including hidden ones.
  4. Delete any unusual or unwanted files using del filename.extension.
  5. Try the operation again that was causing the error.

Use Windows Disk Cleanup

Windows Disk Cleanup can help remove unnecessary or problematic files:

  1. Press Windows Key + S, type ‘Disk Cleanup’, and open the application.
  2. Choose the drive containing the problematic directory and click ‘OK’.
  3. Select the file types you wish to delete and click ‘OK’.
  4. 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:

  1. Restart your computer and press F8 during startup.
  2. Select ‘Safe Mode’ from the Advanced Boot Options.
  3. 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.

In conclusion

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.