After upgrading an existing Windows installation to next version of Windows OS, such as from Windows 7 to Windows 8, Windows 8 to Windows 8.1, Windows 7 to Windows 10, Windows 8.1 to Windows 10 and so on, a Windows.old folder which can be as large as several tens of gigabytes is created and stored on the system drive.

Windows.old directory stores all the previous Windows version system files, and will be used should you decide to uninstall and downgrade from new version of Windows to rollback to old Windows version. But if you have decided that stay in new Windows version, and won’t go back to previous version of Windows, it’s safe to delete the Windows.old folder and recover the disk space used.

It’s not recommended to delete and remove Windows.old folder through Windows Explorer or File Explorer and Command Prompt due to permission errors. Windows does provide an easy way to clean and delete Windows.old, as shown in this tutorial.

  1. Search and run Disk Cleanup or CleanMgr.
  2. Select the drive that you want to clean up from the drop down list. The drive should be the one that Windows.old folder is located, which is almost always been the system drive of C:\. Hit OK to continue.

    Disk Cleanup Drive Selection

  3. After a while, the Disk Cleanup for (Drive Letter:) window is opened. Click or tap on Clean up system files button.

    Clean Up System Files

  4. Select the same drive to perform the clean up in the Drive Selection dialog box.
  5. After a while, a new Disk Cleanup for (Drive Letter:) window is opened. Select (tick) the Previous Windows Installation(s) from the list, which tells the Disk Cleanup to delete the Windows.old folder data.

    Delete Previous Windows Installations

    Select also other options to clean up if you wish, then hit OK.

  6. You may need to repeat the steps above several times to make the cleanup and removal of Windows.old work properly.

That’s it. The Windows.old folder is now removed and disk space is recovered.

If the above method does not work, i.e. Windows.old folder remains, try the following trick instead:

  1. Open a Command Prompt with elevated privileges.
  2. Run the following commands (assuming C:\Windows.old is the location of previous Windows installation):
    cd C:\
    attrib -r -a -s -h C:\Windows.old /S /D
    takeown /f Windows.old /a /r
    rd /s /q Windows.old

Or alternatively,

  1. Open a Command Prompt with elevated privileges.
  2. Issue the following command to restart and boot to the Advanced Boot Options Menu.
    C:\Windows\System32\shutdown.exe /r /o /f /t 0
  3. In the Advanced Boot Options Menu, go to Troubleshoot -> Advanced options -> Command Prompt.
  4. Run the following commands to find out the correct drive letter:
    diskpart
    DISKPART> list volume
    DISKPART> exit
  5. Run the following command to delete the Windows.old folder (assuming C:\Windows.old is the location of previous Windows installation):
    rd /s /q "C:\Windows.old"