Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm on Windows 7 but experienced this kind of trouble on Vista as well sometimes. When I want to delete a folder when I have previously accessed a subfolder of it, Windows cannot delete it and instead says that I need permissions to do that. I own the files so it can't be that. The problem will usually only go away after I close the Windows Explorer Window in which I viewed the subfolder, or alternatively, I can delete the directory tree manually from the bottom up (because it can delete always delete empty directories.) Now, is there a workaround to that? Some setting or policy to tell windows not to bitch around?

To make it clear whether this is just a problem on my computer, maybe you can also check this: create a directory "A", and create another directory "B" inside it, and maybe create a text file "C.txt" in B. Open C from the explorer, type something, save, close, then click on the little "reduce" arrow sign next to A in the tree view, and then click on A and delete it. That doesn't work for me.

share|improve this question
up vote 1 down vote accepted

I don't have a solution to the cause of your problem but I have a suggestion to make. Recently I got irritated from all the file deletion errors and permissions that used to occur in Windows 7 and I searched on the net. I found out this nifty and very small tool called Unlocker . It bypasses all the file restrictions placed if you are the admininstrator and lets you delete as you want so if you want you can try it out........

share|improve this answer
Thanks, I'll try that! – Felix Dombek Dec 20 '10 at 0:45
No Problem mate... I hope it helps... – user57162 Dec 20 '10 at 0:48
+1 for Unlocker, I love that thing :) – KutscheraIT Dec 20 '10 at 0:52
After some problems with the 32-bit version which didn't do anything and made me post yet another question at… , it turned out that this actually works. The question remains whether all Windows 7 computers have this problem. – Felix Dombek Dec 20 '10 at 4:21

Do you have an antivirus? sometimes these get stuck on a file and since they are being used you cannot delete them, the message about permissions is kind of generic in vista and 7, being display in occasions where permissions are not the problem.

share|improve this answer
I do, but the problem is with Windows, I'm quite sure. There's no problem deleting C.txt or B. The only problem is deleting A directly without deleting C or B first. – Felix Dombek Dec 20 '10 at 0:12
+1 This solved my (similar) problem with this issue. Couldn't delete files because Outlook was trying (and failing) to attach them to an e-mail. Closed Outlook, problem solved. – Mitch Goshorn Nov 4 '14 at 21:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .