Remove Windows.old Folder: Freeing Up Space After an Upgrade

Safely remove the Windows.old folder with Settings, Disk Cleanup or the command line, and learn how long Windows keeps it and how to extend rollback.

Remove Windows.old Folder: Freeing Up Space After an Upgrade

After a major Windows upgrade, such as moving from Windows 10 to Windows 11 or installing a new Windows 11 feature update with a full reinstall, you will often find a Windows.old folder in the root of your C: drive. It holds your previous installation so you can roll back if something goes wrong, and it is often 15 to 30 GB. Once you are happy the upgrade has worked, you can safely remove it. Here are the ways to do that on current versions of Windows 11 and Windows 10.

Before You Delete It

Windows.old is what makes the Go back option in Settings > System > Recovery work. Once it is gone, you cannot roll back to the previous version without reinstalling. Check that your apps, printers and files are all fine first. Also look inside C:\Windows.old\Users if you think anything was left behind in your old profile, and copy it out before cleaning up.

You cannot simply delete the folder in File Explorer, because the files are owned by the system. Use one of the methods below instead.

Method 1: Settings (Windows 11 and Windows 10)

  1. Open Settings > System > Storage.
  2. Click Temporary files and wait for Windows to scan.
  3. Tick Previous Windows installation(s). Untick anything else you want to keep, such as the Downloads folder.
  4. Click Remove files and confirm.

On Windows 11 you can also get there through Storage > Cleanup recommendations, which groups the biggest items for you.

Method 2: Disk Cleanup

The classic Disk Cleanup tool still works and is handy on servers or if you prefer it.

  1. Press Win + R, type cleanmgr and press Enter.
  2. Select the C: drive.
  3. Click Clean up system files. This second scan runs with admin rights and is the one that shows the Windows.old option.
  4. Tick Previous Windows installation(s) and click OK, then Delete Files.
Disk Cleanup for system files dialog with the Previous Windows installation(s) option ticked

Method 3: Command Line

If the folder will not go, or you want to script it, open an elevated Command Prompt and run:

takeown /F C:\Windows.old /R /A /D Y
icacls C:\Windows.old /grant *S-1-5-32-544:F /T /C /Q
rd /s /q C:\Windows.old

The first command gives ownership to the Administrators group, the second grants that group full control, and the third deletes the folder. Use this with care and type the path exactly.

For many machines, cleanmgr /sageset:1 lets you choose cleanup categories once, and cleanmgr /sagerun:1 runs them silently, which suits a scheduled task or a deployment script.

How Long Windows Keeps It

Windows deletes Windows.old automatically after the rollback period ends, which is 10 days by default. If you need longer to test, you can extend it from an elevated prompt before it expires:

DISM /Online /Get-OSUninstallWindow
DISM /Online /Set-OSUninstallWindow /Value:30

The value can be anything from 2 to 60 days. This only works while the Go back option is still available.

Frequently Asked Questions

Is it safe to delete Windows.old?

Yes, provided you do not want to roll back and you have copied out any files you need from the old user folders.

Why is Windows.old back after an update?

Each major feature update that reinstalls Windows creates a new one. Monthly cumulative updates do not.

Will deleting it speed up my PC?

Not directly, but freeing 20 GB or so helps if your drive was nearly full, which does slow Windows down.

Related Guides

🛠️

Gear We Recommend

A few general tech accessories worth having alongside this.

Browse our General Tech Accessories picks on Amazon

As an Amazon Associate, TechyGeeksHome earns from qualifying purchases.


Discover more from TechyGeeksHome

Subscribe to get the latest posts sent to your email.

Andrew Armstrong

Andrew Armstrong is a UK-based IT professional with 26+ years of hands-on experience in Windows, Windows Server, SCCM/ConfigMgr, Intune, Active Directory, PowerShell and enterprise infrastructure.

He founded TechyGeeksHome in 2010 and has published 770+ practical guides to real-world IT problems. He also builds free Windows utilities, including Ultimate Settings Panel, which has been downloaded over 850,000 times.

2 thoughts on “Remove Windows.old Folder: Freeing Up Space After an Upgrade”

Comments are closed.

Part of The Geek Network