Delete Windows.old Using Disk Cleanup or Storage Settings

Windows Operating System upgrades as well as version updates would leave plenty of files behind in the system drive. This is because Windows keeps the files from previous versions of Windows in a separate folder, in case the user wants to rollback the major update (or OS upgrade).

For instance, the Windows 10 Anniversary Update v1607 gives you 10 days before which you have the option to rollback to the previous build or version. After 10 days the option to go back wouldn’t be available as the respective folders are cleared automatically. If you’ve upgraded to Windows 10 from Windows 7 or 8, the previous Windows installation folder (Windows.old) is retained for 30 days.

After the stipulated time (days), the corresponding folders will be wiped out automatically by Windows. These are the folders that would be emptied:

  • $GetCurrent
  • $Windows.~BT
  • Windows.old
  • Windows10Upgrade (this applies if you used the upgrade assistant tool)

free disk space after windows upgrade

If Windows doesn’t automatically clear those folders, you can use Disk Cleanup or Storage Settings to remove Windows.old and the other folders.

You can immediately free Up 20 GB+ disk space After Installing a Major Update or OS Upgrade, if you don’t plan to rollback the update.

Typically, the amount of disk space freed up might be anywhere between 14 GB to 25 GB depending upon the bitness of your Windows installation, and the number or programs installed in the system drive.

Method 1: Clearing Windows.old Using Disk Cleanup

First, Disk Cleanup (cleanmgr.exe) doesn’t list Previous Windows installation if you’re not running it as administrator. To elevate it, click the option Clean up system files button in the Disk Cleanup window. Or simply run it as administrator from Start menu. To do so, click Start, type Disk Cleanup, and right-click Disk Cleanup from the results and choose Run as administrator.

In the next dialog that appears, select the following check boxes if available:

  1. Previous Windows installation(s)
  2. Temporary Windows installation files
  3. Windows Upgrade log files

free disk space after windows upgrade

Click OK. You may uncheck the other items if you don’t want to clear them.

Disk cleanup would now warn you that if you clean up the previous Windows installations or temporary installation files, you will no longer be able to restore the machine back to the previous version of Windows. That’s a fair warning.

free disk space after windows upgrade

Click Yes, and let Disk Cleanup do its job.

[Update: October 2017] After installing the Fall Creators Update, I could free up 27.4 GB of disk space by clearing the Previous Windows installation(s) files using Disk Cleanup.
free up disk space fall creators update previous windows installations

If the Disk Cleanup utility doesn’t list the Previous Windows installation(s) entry, or it throws up an error when cleaning up, use Windows 10’s Storage Settings app to clean up previous versions of Windows folder.

Method 2: Clearing Windows.old Using Storage Settings App

Click Start, type Storage and click Storage (System settings)

Click C:\

Click Temporary files, and this further drills down the items in the next window.

Under Previous version of Windows, click Delete previous versions. You won’t be asked for a confirmation.

Note: Previous version of Windows stuff occupies atleast 25 GB of space. In the above screenshot, it shows 3.22 GB because I’ve manually cleared stuff from the Windows.old folder prior to running the Storage settings app. So in your case, the space freed up will be much…much higher. In my test system where it showed 27 GB used by Previous version of Windows (upgraded from Windows 7 x64), it took around 7 minutes for the Storage settings app to assess and clear the Windows.OLD folder.

Method 3:  Deleting Windows.old Manually

Deleting Windows.old using Disk Cleanup or Storage Settings sounds very easy, but they fail to clear the folder in some situations. If they don’t work in your case, you should be able to delete the Windows.old folder manually with the required folder permissions.

  1. Right-click Start, click Command Prompt (Admin)
  2. Type the following commands and press ENTER after each command:
    TAKEOWN /F C:\Windows.old  /R /D  Y
    icacls C:\Windows.old /grant administrators:F /T

    The above is to take ownership of Windows.old, its sub-directories and all the files within and assign full control Permissions for the Administrators group. So the process might take some time to complete.

  3. Then, run the following command to remove the Windows.old folder completely:
    RD /S C:\Windows.old

    In case the third command fails to accomplish the task (due to Cortana’s LocalState folder issue or similar), use this command instead:

    RD /S \\?\C:\Windows.old

Now, the option to Go back to an earlier build should be dimmed out.

free disk space after windows upgrade

Can’t empty Windows.old folder still?

If you’re unable to empty Windows.old folder using any of the above methods, then it could be caused by the Cortana LocalState folder having invalid characters in the file name and remains inaccessible or undeletable. To wipe out this folder successfully, you can use IOBit Unlocker tool as described in article How to Delete a Stubborn Undeletable File or Folder in Windows?

That’s it! Hope you’ve reclaimed disk space after emptying the Windows.old folder using one of the methods above.

About the author

Ramesh Srinivasan founded back in 2005. He is passionate about Microsoft technologies and has a vast experience in the ITeS industry — delivering support for Microsoft's consumer products. He has been a Microsoft MVP [2003 to 2012] who contributes to various Windows support forums.

Leave a Comment