# How to remove a Windows folder with error “Access is Denied”

I'm running Windows 2003. I am an admin on this particular machine. I tried to delete a folder, but something went slightly wrong. When I navigate to its parent I can see it in there.

When I double click the folder, I get the error message: D:\Path\to\folder is not accessible. Access is denied.

When I try to delete the folder, I get Cannot delete foldername: Access is denied. Make sure the disk is not full or write-protected and that the file is not currently in use. and I get the same when I try to rename it or create a similarly-names folder.

There is ample room left on that drive, so the disk isn't full at all.

Is there anything else I haven't thought of? I don't really want to restart the machine, but I will if I have to.

-
Access denied means access denied. It's there and you are not allowed to delete it. No problem. –  mailq Aug 17 '11 at 16:27
I have seen some weird behavior when you have filesystem corruption. You may want to run a check disk, but if that is on your system drive, you would need to reboot to do that. –  Zoredache Aug 17 '11 at 16:35
@maliq Actually, there are a lot of possible errors that get crammed into the Win32 "Access Denied" error. See for example support.microsoft.com/kb/113996 There are 25 references to "ACCESS_DENIED". This could easily be STATUS_CANNOT_DELETE which doesn't say the say what the issue is. –  Chris Smith Aug 17 '11 at 17:36

## migrated from serverfault.comAug 17 '11 at 17:05

This question came from our site for professional system and network administrators.

I can't take ownership (or at least I don't know how). The only tab available in Properties is General –  Piers Karsenbarg Aug 18 '11 at 8:34