Remove the Windows.old folder manually - gHacks Tech News

Remove the Windows.old folder manually

Windows creates the folder Windows.old on a PC running Windows when you upgrade the PC to a new version of the operating system.

The Windows.old folder contains files and folders of the old installation of Windows, and the main reason it is there is that it is used to restore the old system if the user wants to go back to it.

This folder may take up a sizeable amount of space, but will get deleted automatically usually by Windows after a set period of time.

Windows users may also use the disk cleanup tool to remove the folder as described here. Sometimes however it happens that the folder and its content is not removed, and that a manual removal does not work either.

When you try to delete the folder manually in Explorer, you get permission errors as the folder is associated with SYSTEM and not a user or administrator account.

What happens usually is that you get a permission request first to run the operation with administrative privileges, and then the Folder Access Denied error.

folder access denied

Remove the Windows.old folder manually

You need to run the following commands remove the Windows.old folder manually.

  1. Open an elevated command prompt. EAsiest way to do so is to tap on Windows, type cmd.exe, hold down the Shift-key and the Ctrl-key, and launch the elevated command prompt with a tap on the Enter-key.
  2. takeown /F c:\Windows.old\* /R /A /D Y
  3. cacls c:\Windows.old\*.* /T /grant administrators:F
  4. rmdir /S /Q c:\Windows.old

Lets take a closer look at the commands to better understand what they do:

takeown /f c:\Windows.old\* /r /a /d y

Takeown can be used to make the administrators group the owner of a file or directory.

  • /f c:\Windows.old\* -- This specifies the location and files that the operation will be run on.
  • -r -- performs a recursive operation on all files (means all files are included that are in the Windows.old folder).
  • -a -- gives ownership to the Administrators group.
  • -d Y -- surpresses the confirmation prompt when the current user does not have the "List Folder" permission.

cacls c:\Windows.old\*.* /t /grant administrators:f

This command displays or modifies DACL (discretionary access control list) files.

  • c:\Windows.old\*.* -- The files you want the operation to run on.
  • /t -- This changes the DACL of the files in the selected directory and all subdirectories.
  • /grant administrators:f -- This grants full access rights to the administrators group (The F stands for full)

rmdir /s /q c:\Windows.old

The command removes a directory.

  • /s -- this parameter makes the command remove the directory that is specified, and all of its subdirectories and files.
  • /q -- runs the program in quiet mode without confirmation prompts.
  • c:\Windows.old -- specifies the directory the operation should be run on.


Remove the Windows.old folder manually
Article Name
Remove the Windows.old folder manually
This guide provides you with detailed instructions on deleting the Windows.old folder on a Windows computer manually and forcefully.
Ghacks Technology News

We need your help

Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.

We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats or subscription fees.

If you like our content, and would like to help, please consider making a contribution:

Previous Post: «
Next Post: »


  1. dmacleo said on July 12, 2017 at 8:50 pm

    if on domain may work bit different, can rt click folder properties-security-advanced-change permissions.
    then where it lists owner click change and use domain admin acct.
    click the replace all child object box.
    then apply, ec then delete.
    have had to do it to 15 or so of them lately..

  2. jasray said on July 12, 2017 at 9:21 pm

    Bastante para ahora–

    takeown /F C:\Windows.old\* /R /A
    cacls C:\Windows.old\*.* /T /grant administrators:F
    rmdir /S /Q C:\Windows.old\

    Copy-paste this in Notepad and save it as a .bat file.

    1. Ephos said on November 21, 2018 at 9:07 am

      worked well for me thanks @ jasray

    2. Josh said on June 21, 2019 at 6:16 pm

      Awesome, love it!

    3. Bearman_18 said on September 11, 2019 at 10:33 pm

      This guy is a friggin’ hero.

  3. Arie said on July 13, 2017 at 8:16 am

    Boot from a Linux live cd / dvd, go te the folder where windows.old is located, delete it, done

  4. TianlanSha said on July 13, 2017 at 3:23 pm

    I’ve seen another method where you run Disc Cleanup and it deletes it.

    1. Martin Brinkmann said on July 13, 2017 at 4:24 pm

      Yes, Disk Cleanup deletes it usually, but there are situations where this won’t work, or where leftovers remain.

      1. Mark Hazard said on July 13, 2017 at 8:11 pm

        Yes, disk cleanup deleted the files but not the folder. When I tried to delete the folder manually, I got the response that the file was corrupted and unreadable. I searched the Web for an answer, which was to use Chkdsk. When I did that, I was told that the file was in use by another program(?). I was asked if I wanted to run Chkdsk on the the next restart. I answered yes, and restarted. Chkdsk worked seemingly very quickly, and when I tried to delete Windows.Old, I got the same response. I repeated the process, and this time Chkdsk worked more slowly. Then I was finally able to delete Windows.Old.

        The Chkdsk command that I used from an administration account was chkdsk C: /F. I tried another version using /B but it did not work. This was on Windows 8.1.

  5. Lo Hanisch said on July 15, 2017 at 9:52 pm


    command 2 answered:”Zuordnungen von Kontennamen und Sicherheitskennungen wurden nicht durchgeführt.”
    What to do?


  6. chesscanoe said on July 16, 2017 at 11:54 am

    I used Google to search the German phrase and translate the result to English. Perhaps will help from Norton.

  7. Lo Ha said on July 16, 2017 at 6:43 pm

    “Zuordnungen von Kontennamen und Sicherheitskennungen wurden nicht durchgeführt ”
    Meaning:”Assignments of accounts and security-states are Not altered.”

  8. Lo Ha said on July 16, 2017 at 6:49 pm

    “Zuordnungen von Kontennamen und Sicherheitskennungen wurden nicht durchgeführt”
    Meaning: “Assignments of accounts and security-states are Not altered.”

  9. Fame said on July 15, 2018 at 8:35 pm

    Thank you
    Worked like a charm. Keep up the good work

  10. Steve W said on October 1, 2018 at 4:25 am

    Thank you! This worked perfectly where windows.old would not remove through all other methods.

  11. Michael Wallace said on November 28, 2018 at 7:35 am

    _____THANK_____YOU !!!!!!!!!!!!!!!!!!!!!

    I wrestled with this for about an hour. Cortana would not give up the ghost.

    I rebooted into safe mode, and applied your fix, and WINDOWS.OLD is now GONE !!!!!

  12. Arcionquad said on November 30, 2018 at 3:23 pm

    It worked!


  13. Anonymous said on June 11, 2019 at 5:58 pm

    Great worked great for me

  14. Jim Potyoposin said on September 15, 2019 at 6:15 pm

    access denied
    you are irrelevant don’t write things and confuse us

Leave a Reply

Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

Please note that your comment may not appear immediately after you post it.