Deleting a corrupt folder (error code 0x80070091)

I have a folder X which contains a folder Y. When I try to explore this folder I receive the message: 'C:\...\Y is not accessible. The file or directory is corrupt and unreadable.' If I try to delete either X or Y, I receive the error code: 0x80070091, The directory is not empty.

I have full administrator privileges for both folders and I've tried running Disk cleanup, Chkdsk and MoveOnBoot but none of these managed to remove the folders. Can someone help me get rid of them?

Thanks in advance,
Michael
Answer
Answer
Open directory V and try to delete the individual files there until you come across the file that's causing it not to delete (there'll probably be at least one).  Then try to change the security properties on the file to give you access to delete.

To see your permissions, right click the folder/file, click on properties, and check out the security tab.  Check to see what permissions you have by clicking on your username (or user group).  Here are the types of permissions you can have: http://windows.microsoft.com/en-US/windows-vista/What-are-permissions.  You need to be an administrator or the owner to change permissions (and sometimes being an administrator or even an owner isn't enough - there are ways to block even them from access (though a smart administrator knows these ways and can get around them - but usually shouldn't because they were denied access usually for a very good reason).  Here's how to change file and folder permissions in Vista: http://www.online-tech-tips.com/windows-vista/set-file-folder-permissions-vista/.
 
To fix this problem with the fuks/folders, take ownership of the folders or the drive (as an administrator) and give yourself full rights.  Right click the folder/drive, click on properties, go to the security tab and click on Advanced and then click on the Owner tab.  Click edit and then click the name of the person you want to give ownership to (you may need to add it if it isn't there - or it may be yourself). If you want it to apply to sub-folders and files within that folder/drive, then check the box for replace owner on sub-containers and objects and click OK.  Back out and now there's a new owner for the folders/drive and files who can change permissions as needed.  I'd do this just on the folders you're having trouble with.  You should now be able to delete them.  Here's more information on taking ownership of a file or folder:
http://www.vistax64.com/tutorials/67717-take-ownership-file.html.

If you can't do it with Windows, perhaps you can with a 3rd party program from www.tucows.com or www.download.com.  Here's an example: http://www.tucows.com/preview/503500?q=delete+files (though I don't know if it will work in this situation - but i suppose it's worth a shot if you can't do it through Windows).  If this doesn't work, check out the two download sites for alternatives which may work.

I hope this helps.  Let us know how it goes either way.

Good luck!
Lorien - One - MCSE/MCSA/Network+/A+

37 people found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Answer
Answer

Hello Notnek,

 

Welcome to Microsoft answers!

 

Max, please let us know the dimension so that we could check with the compatibility.

 

Since when is this happening?

 

What files does the folder contain?

Did you perform any installation or uninstallation of any program?

 

One thing you can try is to delete the folder from safe mode.

 

Start computer in safe mode with networking capability (HOLD F8 while computer is starting up).

 

To start your computer in safe mode, you can refer the below link:

 

 http://windowshelp.microsoft.com/Windows/en-US/help/323ef48f-7b93-4079-a48a-5c58eec904a11033.mspx

 

You can also try renaming the folder and then try deleting it.

 

Hope this information is useful.

 

Regards,

 

Savan – Microsoft Support.

 

67 people found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated April 25, 2024 Views 182,392 Applies to: