IT Log

Record various IT issues and difficulties.

Error 0x80070091: Directory Not Empty – How to Fix


To resolve the error 0x80070091 “Directory Not Empty,” follow these steps systematically:

  1. Identify the Directory: Locate the directory that is causing the error.

  2. Manual Deletion:

  3. Delete all files within the directory manually.
  4. Remove any subdirectories by recursively deleting their contents.

  5. Check Permissions:

  6. Right-click the directory, select “Properties,” and navigate to the “Security” tab.
  7. Ensure you have full access permissions; modify if necessary.

  8. Use Disk Cleanup:

  9. Open the Start menu, search for “Disk Cleanup.”
  10. Select the drive containing the problematic directory, click “Clean up now.”

  11. Cipher Command:

  12. Run Cipher /W:C:\Path\To\Directory in Command Prompt to remove unnecessary encryption.

  13. Third-Party Tools: Utilize tools like Recuva or CCleaner for deeper cleaning, ensuring safe usage of delete options.

  14. Command Line Tools:

  15. Use del /F/Q “C:\Path\To\File” to forcefully delete files.
  16. Use rmdir /S/Q “C:\Path\To\Directory” to recursively remove directories.

  17. Check for Locked Files:

  18. Open Process Explorer, search for locked files in the directory, and end any related processes.

  19. Disk Error Check:

  20. Run Command Prompt as Administrator.
  21. Execute chkdsk /f /r C:\Path\To\Drive to scan and fix disk errors.

  22. Reboot System: Restart your computer after making changes to apply updates or fixes.

  23. Last Resort – Format Disk:

    • Backup all important data.
    • Use the “Format” option in File Explorer or Command Prompt to reformat the drive, ensuring a clean slate.

By methodically following these steps, you can effectively address the directory not empty error and resolve underlying issues.


, , , ,