Windows 10: Can't delete folder - Windows requires Administrator permission

Page 1 of 2 12 LastLast
  1.    04 Aug 2015 #1

    Can't delete folder - Windows requires Administrator permission


    Hello,
    I try to completely delete a folder from C:\Program Files (x86), after I uninstalled the program it contained, but I get this message:
    "You require permission from administrators to make changes to this folder"
    But I am the administrator, no?
    Thanks
      My ComputerSystem Spec

  2.    04 Aug 2015 #2

    mibaup said: View Post
    Hello,
    I try to completely delete a folder from C:\Program Files (x86), after I uninstalled the program it contained, but I get this message:
    "You require permission from administrators to make changes to this folder"
    But I am the administrator, no?
    Thanks

    I think you might be having the same problem as in this thread...I posted a link to my fix near the end:
    Unable to move/copy etc. files within C: drive? - Windows 10 Forums
      My ComputerSystem Spec


  3. Posts : 3,357
    W10 Pro x64/W7 Ultimate x64 dual boot main - W10 Pro Insider Preview/W7 Pro x64 - remote pc
       04 Aug 2015 #3

    Hello! mibaup Welcome to the Ten Forums! There are a few ways to take care of any leftovers in areas otherwise managed by the System admin not the user admin account.

    First you have to elevate the permissions as prompted or when possible take ownership over the files and folders you are trying to clear off left there in case you reinstall the same program again. Sometimes a program is removed and reinstalled in order to get it working.

    Besides elevating permissions and taking ownership over something which automatically will elevate the user to see admin privileges you can even Add "Take Ownership" to Explorer Right Click Menu in Windows which is a slight additional entry placed into the system registry that works on 10 as well as XP, Vista, 7, 8, and 8.1!

    This one also comes in handy when you need to get rid of the Windows.old folder manually since you first have to dig down deep into sub folders of sub folder in order to change the attributes from "Read only" which is why you are not able to simply dump the folders there and then right click to uncheck the read only box and click apply when you have enough permissions in Windows. And this is precisely what you are running into!

    The reg edit there is the easy for most without the need to follow the manual steps in order to take ownership over each folder one by one if you have a lot to clear off! In fact we have a tutorial guide for the same "registry hack" as the article there named it with a slightly different title for the same little reg mod. How to Add 'Take Ownership' to Context Menu in Windows 10


    The other tutorial with different options as well as that there can be looked at
    How to Change Owner of File, Folder, Drive, or Registry Key in Windows 10

    Again once you have taken ownership over any file or folder in particular you will see a command prompt type window appear and watch as the lines of text appear and scroll quite fast indicating successes with taking ownership as this option goes to work.
      My ComputerSystem Spec


  4. Posts : 120
    Windows 10 (duh)
       04 Aug 2015 #4

    Still, you won't be able to delete some files no matter what you do on a live system.
    For that, you need to boot from the install disk / recovery mode, press Shift + F10 and use the cmd prompt to delete files (or launch totalcmd or alternative filemanager to delete files using a gui).
      My ComputerSystem Spec


  5. Posts : 3,357
    W10 Pro x64/W7 Ultimate x64 dual boot main - W10 Pro Insider Preview/W7 Pro x64 - remote pc
       04 Aug 2015 #5

    There isn't any non system files you can't get rid of as long as the program they are for isn't running and keeping them active by accessing them. With a program already uninstalled it's a simple matter of taking ownership over them in order to uncheck the read only box which prevents you from simply tossing them into the Recycle Bin. I get rid of the Windows.old enough times by going deep first to change file attributes so what is deep gets dumped first before the main folder goes so you never end up with hidden files taking space other then protected system files. The guides there will see to it you have all the permissions you will need in order to zap everything left behind.
      My ComputerSystem Spec


  6. Posts : 120
    Windows 10 (duh)
       04 Aug 2015 #6

    Your first phrase bends logic a litle. I'm telling you it happened to me several times even on the Windows .old folder.
    takeown + cacls is the first thing I've tried ending up wasting time since the problem might have been Defender doing something stupid like locking similarly named files.

    But what if it's something else? The time you waste waiting for the takeown / cacls / rd (failed) processing + the time you waste finding the app locking the files + the time you waste trying to kill that app (and you might not be able to do it) is far longer than the time to boot into recovery and Shift + F10.

    Just pointing out takeown is not perfect, hell, even effective tools like psexec / paexec fail sometimes.
      My ComputerSystem Spec


  7. Posts : 3,357
    W10 Pro x64/W7 Ultimate x64 dual boot main - W10 Pro Insider Preview/W7 Pro x64 - remote pc
       04 Aug 2015 #7

    I will do two things first going into the properties>advanced to the owner tab there if any problem as far as the right click menu option not working. The explanation there was simple rather then going into any lengthy detail about Defender or something else hanging onto any one particular file for example. Once you take ownership of the Windows.old folder you can't simply delete that in one shot since there are too many sub folders and files still seeing the read only box checked off where you need to change the attributes and then go in a few layers of sub folders deep and start there to work outward nuking the subs under other subs first until you arrive at the root folder and first line of sub folder or simply let the Disk Cleanup tool handle that as well as other temp installation files and folders to clean up drive space.

    Now with 10 unlike the depth seen with Vista onto 7 as far as that folder I took over the first line of subs and then when each of those disappeared simply nuked the top folder. It still takes some time obviously considering just what folder that is but was done is fewer steps. That was one improvement noticed so far in 10 besides now seeing an animated graph when transferring files that shows the megabyte per second speed for both file transfers or copying or removing files and folders. That can tell you when a drive is slowing up as well possibly from wear and tear.
      My ComputerSystem Spec

  8.    04 Aug 2015 #8

    Night Hawk said: View Post
    There isn't any non system files you can't get rid of as long as the program they are for isn't running and keeping them active by accessing them. With a program already uninstalled it's a simple matter of taking ownership over them in order to uncheck the read only box which prevents you from simply tossing them into the Recycle Bin. I get rid of the Windows.old enough times by going deep first to change file attributes so what is deep gets dumped first before the main folder goes so you never end up with hidden files taking space other then protected system files. The guides there will see to it you have all the permissions you will need in order to zap everything left behind.
    I can confirm AveYo's account. I also had 3 files and 2 folders in the Windows.old folder that simply would not delete. Even after drilling down and 'taking ownership' multiple times.

    What I ended up doing was booting from a live Linux CD and delete from there. This issue rarely happens but it does in fact sometimes happen.

    YMMV.

    ~sent from Core's 'droid.
      My ComputerSystem Spec


  9. Posts : 324
    Win 7 Pro/32, Win 10 Pro/64/32
       04 Aug 2015 #9

    The program "Take Ownership" is getting old and not as efficient the day it was written.
    I use the New and Improved version called "Grant Admin Full Control".

    I have to use that often on my system(s) so it's one of the first programs I load, when setting up a new PC or a PC with a new OS.

    As for getting rid of the "Windows.old" folder after a Win-10 upgrade, that can be done quite simply in the Disk Cleanup program that comes with every version of windows since.....well, a very long time.

    I dump that worthless Windows.old folder on every system I set up.
    Another elephant in the room is the Hiberfil.sys file created by "Hibernation". so I disable that beast too. No harm, no foul!

    Cheers mates!


    PS: I read somewhere, that if you just ignore that Windows.old folder, it will go away all by itself in just a few weeks. ???
      My ComputerSystem Spec

  10.    04 Aug 2015 #10

    TechnoMage said: View Post
    The program "Take Ownership" is getting old and not as efficient the day it was written.
    I use the New and Improved version called "Grant Admin Full Control".

    I have to use that often on my system(s) so it's one of the first programs I load, when setting up a new PC or a PC with a new OS.

    As for getting rid of the "Windows.old" folder after a Win-10 upgrade, that can be done quite simply in the Disk Cleanup program that comes with every version of windows since.....well, a very long time.

    I dump that worthless Windows.old folder on every system I set up.
    Another elephant in the room is the Hiberfil.sys file created by "Hibernation". so I disable that beast too. No harm, no foul!

    Cheers mates!


    PS: I read somewhere, that if you just ignore that Windows.old folder, it will go away all by itself in just a few weeks. ???
    Yes, Windows 10 will automatically remove it in a month. If you don't rollback to your previous system. Yes Disk Cleanup will get rid of it. Doing either is much less efficient than a simple right click>delete SHOULD be.

    As for the 'Take Ownership', it's not a 'program' or an 'app', it's a simple registry edit. Can be implemented by importing the already written registry entry from a .reg file. No external programs or apps need. It's just turning on a built in Windows function, that is disabled by default.
      My ComputerSystem Spec


 
Page 1 of 2 12 LastLast

Related Threads
Is it ok to delete $Windows10.~BT folder after install? Mine had 6.29Gb. :zip:
What's wrong with this PC when using Windows 10? This is happens when I'm fresh boot like Shut Down & turn on again/restart the PC. Documents, Picture, Music, & all of them! They keep revert back to without my name & access it to Full Control!...
Hi, I have downloaded the Windows 10 Pro ISO using Media Creation Tool and I wanted to know if it is safe to delete the Windows~BT folder before doing the upgrade. Will it cause some mess with the upgrade process if I delete it or just to leave...
Can I delete Windows.old folder ? and is it any important file inside that folder ? and where can I find my device manager ? :really:
Insider updates from 10130 to 10158 to 10159 to 10162 in fairly quick succession, and tried to delete Windows.old. After an age at 98%, then having to manually skip a load of stuff, it still seems as full as ever. Is there an easy way to remove the...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 09:41.
Find Us