What is Error 0x80070091 & How to Fix it?

Summary: Error0x80070091 – The directory is not empty error prevents you from deleting or transferring files to a specified location. Learn the possible reasons and fixes for this issue. Further, keep data recovery software as a backup plan to restore files if they go missing due to this error.

Being a PC user, creating and sorting data (files, folders, documents, etc.) must be part of your daily chores. But, what if one day you’re trying to delete files from your system or an external drive, and you just can’t do it? Instead, you receive an error 0x80070091.

Rather than running around in circles, it’s always better to focus on finding the solutions. Thankfully, there are some ways to fix the directory is not empty error. Further, learning the underlying cause of this error will make fixing it a cakewalk. Let’s start!

What is the Error0x80070091?

This system error has a bug check value – 0x80070091. The bug code further states – The directory is not empty. The error blocks you from removing data from any folder on your system. Whenever you try to delete any file or folder, Windows throws this bug code.

While digging into the root cause of this issue, you may find that it occurs because the folder isn’t empty or has already been accessed by some application (running in the background). However, it’s not the case. Even if the folder is empty, you may encounter this bug code.

What Causes Error0x80070091?

There could be multiple possible reasons behind this system issue, including corrupted system files, bad sectored hard drives, insufficient folder permission, or malware infection. Since there could be multiple factors contributing to the rise of this error, we’ve come up with the best possible workarounds that will help you resolve the problem.

How do I Fix Error Code 0x80070091?

Try out the below methods and see which one works in your favor.

Primary Solution

Method 1: Delete Folder with Command Prompt

Since the error prevents you from deleting data, you can try removing your files and folder with the Command Prompt. However, be careful while using the Command Prompt, as one wrong attempt can cost you important data. Either back up your wanted files or restore important files using professional data recovery software. Once done, proceed with the following steps:

When you’re prompted with the Y/N option, type Y and hit Enter to confirm your action. Once the process is complete, close the cmd window. Restart your system, retry deleting any folder/file, and check if the error is gone.

Additional Note: If you want to delete one or more files, you can use the delete command. You can also run this command from the WinRE console. The whole syntax for the delete command goes as – del [/p] [/f] [/s] [/q] [/a[:]<attributes>] <names>. Replace the [:} after /a with the file types (like system files, read-only files, hidden files, etc.) Then use the Folder name in place of <name> from which you wish to delete files. All the included files in the folder will be deleted.

#2 Check for Disk Errors

The error could also occur due to a hard drive that’s corrupted or has bad sectors on it. Try checking your disk for errors and fixing the corrupted drive to resolve the bug code. You can do it two ways – (I) Using Command Prompt and (II) Using Error Checking tool.

With Command Prompt

Let the scanning complete. Once done, close the window and reboot your system.

With Error Checking Tool

#3 Assign Full Permission to Affected Folder.

Insufficient access permission may also be the reason for ‘the directory is not empty’ error. You can assign Full Permission to the affected folder with the following steps and check if the issue is resolved.

Type the name of the user for which you want to change the permission settings and click OK to confirm.

Finally, check if you can access the folder error-free.

Secondary Solutions

However, the problem would get resolved by now. Yet, in worst-case scenarios, if it persists, try out these methods.

Delete Folder with CMD in Recovery Environment

Now, in the notepad, go to File > Open.

Run SFC Scan

Missing or damaged system files could be the cause of this system error. Try running SFC to repair the incorrect versions of the system files and resolve the error. To do so, follow the given steps:

Scan your PC for malware

If the error is bugging you, your last bet is scanning your PC for malware infection. If you’ve any third-party antivirus program installed on your system, run it for scanning. Else, you can run Microsoft Defender Antivirus Program in Windows using the following steps:

Lastly, if it feels that the error is unsolvable, try resetting your Windows. Sometimes, so many factors could be responsible for the issue, making it difficult to identify the root cause and fix it accordingly. Resetting Windows can bring your system to the default configuration and fix the bug.

While resetting Windows, it’s recommended to choose the ‘Remove everything’ option to effectively complete the process. However, you should back up your data before performing this method. In case you forgot to take backup of the data, you could still recover data after resetting Windows.

FAQ

1. How do you permanently delete a file?

You can use Shift + Delete to remove files permanently. Windows prompts you with a dialog box to confirm the action. When you click ‘Yes’ on the prompted confirmation box, the file will be lost.

2. Are deleted fine gone forever?

When you delete files with DEL or Shift + Del key, only the file pointers get removed, but the file data remains there. File pointers indicate the beginning and the ending of a file’s existence. When these pointers are removed, the file becomes inaccessible but recoverable. You can recover shift-deleted files using a powerful data recovery solution.

3. What is 0x8007045d Error in Windows?

When the OS can’t read the files on the system or there is some issue with the externally connected drives, you may face a 0x8007045d bug code. This bug code may appear during Windows update installation or while transferring data.

4. What is error 0x80071a91 on Windows 10 update?

The 0x80071A91 error code occurs when there is corruption in Windows file system transactions. Whenever a file error occurs, the Windows file system uses the transaction log to restore the system transaction. This bug code translates to – Transaction support within the specified file system resource manager is not initiated or is already shut down due to this bug code

Related Post

Stellar Data Recovery

Trial Download is for Desktop or Laptop. Put your email id to receive the download link




Exit mobile version