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 have some folder: C:\program files (x86)\myApplication\myFolder

I uninstalled the application, but myFolder is still there. If I try to open it, I get an 'Access denied'.

If I try to delete it I get the message that I need to acquire Admin rights to proceed. If I click the respective button, I still get a message that I don't have the necessary rights to do it.

If I click on properties of the folder it takes quite some time until the properties window opens (around 10 seconds). It's 0 bytes. If I go to 'security' and check the owner of the folder, it tells me that the current owner of the folder cannot be displayed. If I try to change the owner to myself it tells me that the new owner cannot be setup - access denied.

Can anyone tell me how I can get rid of that folder?

share|improve this question
Did you reboot yet? – Moab Jul 1 '11 at 14:56
I did reboot but that didn't help – Mat Jul 1 '11 at 15:08
I was experiencing this same issue after uninstalling Logitech Setpoint, but in my case the reboot did help -- the folder disappeared after the reboot. Thanks for that comment, Moab. – StormRyder Nov 16 '13 at 21:09
up vote 4 down vote accepted

I feel like I answered this more than once but I can never find it when the dupes show up. Anyway what you are looking for is this command:

Net user administrator /active:yes

Enter this into an elevated cmd window (right click, run as administrator), log off then log in as the administrator account. Make sure you disable it by setting active:no when you are done, this account is not for day to day use and bypasses UAC.

share|improve this answer
I wish I had seen this earlier today, before beating my head against the wall for 5 hours. – Herb Caudill Sep 5 '11 at 22:51

Are you logged as a local administrator in the first place? If not, that is your do not have the rights. If you are, then take ownership of it with this command:

TAKEOWN /F directory /R /A

This will take ownership and give permissions to the administrator.

share|improve this answer

It may be locked by an application. Try deleting it from Safe Mode.

share|improve this answer

The main reason behind this is that the explorer.exe process locks files that are in use, effectively preventing you from deleting them. Usually, these files should not be touched, but sometimes, situations arise when you really need to erase some troublesome ones.

Fortunately, there are a few easy solutions to delete those files.

Solution #1: Kill explorer.exe
Solution #2: Use The Windows Recovery Console
Solution #3: Use unlocker

More details and reference:

share|improve this answer

You must log in to answer this question.

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