Drive Sweeper
Windows 10 & 11 Buy license · $29.95
Junk files

How to Delete the Windows.old Folder Safely in Windows 11 and 10

How to delete Windows.old safely in Windows 11 and 10 using Settings or Disk Cleanup, why File Explorer will not let you, and what you give up.

Updated 5 minute read The Drive Sweeper team

To delete the Windows.old folder safely, open Settings > System > Storage > Temporary files, tick Previous Windows installation(s) and click Remove files. In Windows 10 or with the classic tool, open Disk Cleanup, click Clean up system files and tick the same item. Do not try to delete Windows.old in File Explorer: it is protected, and forcing it can leave a half-deleted folder behind. Before you remove it, check that you do not want to roll back the upgrade and that none of your personal files are only in there.

What Windows.old is and why it is so big

When you upgrade Windows, for example from Windows 10 to Windows 11 or to a new yearly feature update, Windows moves your previous installation into C:\Windows.old. It keeps the old system files, programs and settings there so you can go back if the upgrade causes problems. The same happens if you reinstall Windows over an existing installation without formatting the drive.

Because it holds a whole copy of Windows, it is often anywhere from 10 GB to 30 GB or more. On a small SSD, that can be the difference between a working PC and a full drive.

Will it delete itself?

Yes. According to Microsoft, your previous version of Windows is deleted automatically 10 days after the upgrade. If you are happy waiting, you do not need to do anything. Delete it yourself only if you need the space sooner, or if the folder is still there long after an upgrade.

Until it is removed, you can roll back from Settings > System > Recovery > Go back (in Windows 10, Settings > Update & Security > Recovery). Once Windows.old is gone, that option disappears and the only way back to the earlier version is a clean install.

Need longer to decide?

If you want to keep the option to roll back for more than 10 days, you can extend the window before it runs out. In an administrator terminal, DISM /Online /Get-OSUninstallWindow shows the current number of days, and DISM /Online /Set-OSUninstallWindow /Value:30 sets it to 30. The maximum is 60 days. Keep in mind that Windows.old keeps using space for the whole period.

How much space will you get back?

Right-click Windows.old in C:\ and choose Properties to see its size, or check the figure shown next to Previous Windows installation(s) on the Temporary files page. That is roughly what you will recover once it is removed.

Before you delete: check for personal files

Windows normally moves your files into the new installation, but if anything seems missing after an upgrade, look in Windows.old first.

  1. Open File Explorer and go to C:\Windows.old\Users.
  2. Open the folder with your old account name.
  3. Check Desktop, Documents, Pictures, Downloads and any other folders you used.
  4. Copy anything you need to your current user folders.

Also note the names of any programs that did not survive the upgrade, so you can reinstall them later.

Method 1: Delete Windows.old from Settings (Windows 11 and 10)

  1. Press Windows + I to open Settings.
  2. Go to System > Storage.
  3. Click Temporary files and wait for the sizes to load.
  4. Tick Previous Windows installation(s).
  5. Untick anything else you do not want removed, especially Downloads.
  6. Click Remove files and confirm.

You need to be signed in with an administrator account. The removal can take a few minutes for a large folder.

Method 2: Delete Windows.old with Disk Cleanup

  1. Click Start, type Disk Cleanup and open it.
  2. Select the C drive and click OK.
  3. Click Clean up system files and select C again.
  4. Scroll the list and tick Previous Windows installation(s).
  5. Click OK, then Delete Files, and confirm the warning.

Disk Cleanup will also offer Windows upgrade log files and Temporary Windows installation files after an upgrade. Both are safe to remove once the upgrade is finished and working.

Why you should not delete it in File Explorer

If you select Windows.old in File Explorer and press Delete, you will usually see permission errors, or the deletion will stop part way through. The folder contains system files owned by TrustedInstaller and files with very long paths, which File Explorer handles poorly.

Some guides suggest taking ownership of the folder or using command-line tricks to force it. That is unnecessary and risky: Settings and Disk Cleanup already have the permissions to remove it cleanly. If a previous attempt left a partial Windows.old behind, run the Disk Cleanup method above; it can usually remove what remains.

If Previous Windows installation(s) does not appear in the list, Windows does not consider the folder a valid previous installation, often because it was partly deleted. Restart, run Disk Cleanup with Clean up system files again, and check that nothing else is using files in the folder.

Other upgrade leftovers you can clear

ItemWhere to clear itSafe?
Previous Windows installation(s)Settings or Disk CleanupYes, if you will not roll back
Windows upgrade log filesDisk CleanupYes, once the upgrade works
Temporary Windows installation filesSettings or Disk CleanupYes
Windows Update CleanupSettings or Disk CleanupYes
Delivery Optimization FilesSettings or Disk CleanupYes

The WinSxS folder may also look large after an upgrade. Do not delete it; see our guide to a WinSxS folder that looks too large for the safe way to shrink it.

After the removal, restart the PC and check the free space on C in File Explorer. If Windows.old is still listed with a small size, run Disk Cleanup once more after the restart; leftover files that were in use are usually removed on the second pass.

After Windows.old: where the rest of your space is

Removing Windows.old is a one-off win. If your drive fills up again within weeks, the cause is usually ongoing: temporary files, restore points, or your own files growing. Our guide to a C drive that is full for no reason goes through the hidden causes.

For your own files, Drive Sweeper scans for duplicate files and photos, huge forgotten files, old downloads, update leftovers and temporary junk in one pass. It never picks Windows or program files, labels every item safe, review or keep, and keeps removed files in a restore area for 30 days, which is the undo that Windows' own cleanup tools do not give you. Drive Sweeper can also run a sweep every week or month so the space does not quietly disappear again.

Frequently asked questions

Will Windows.old delete itself?

Yes. Windows removes it automatically about 10 days after an upgrade. You only need to delete it yourself if you want the space back sooner.

Can I still go back to my previous version after deleting Windows.old?

No. The rollback option uses Windows.old, so once it is removed you would need a clean install to return to the earlier version.

Are my personal files in Windows.old?

It can contain copies of files from your old user profile. Check Windows.old\Users if anything seems missing after the upgrade, and copy it out before removing the folder.

Get three guides like this every month, plus software update notices.Subscribe →