To safely erase Windows.old, use Storage Sense or Disk Cleanup — these built-in tools handle the protected system permissions automatically.
After upgrading to a newer version of Windows, a folder named Windows.old sits on your system drive holding everything from the previous installation. That folder can eat up 5 to 20 GB of space, and the standard right-click delete in File Explorer won’t touch it. How to erase Windows.old the right way means using the tools Microsoft built for the job — or, when those fail, a carefully sequenced command-line approach.
What Is The Windows.old Folder?
Windows creates the C:\Windows.old folder automatically when you upgrade from an older OS version (like Windows 10 to 11) or install a major feature update. It keeps all the system files, program data, and settings from your previous installation so you can roll back if something goes wrong. That makes it a safety net, but it’s also a space hog that won’t clean itself out for 10 days.
How Long Does Windows Keep The Old Folder?
Windows auto-deletes Windows.old after 10 days. Before that window closes, you can revert to the old version using the recovery options in Settings. After those 10 days pass, the system removes the backup files on its own schedule — but you can erase them manually at any point to reclaim space immediately. Just know that once it’s gone, the rollback option is gone too.
Erasing Windows.old: Three Methods That Actually Work
The folder is protected by system-level permissions, which is why a simple Delete key press fails. Each method below handles those permissions correctly, but they differ in ease and compatibility. Start with the easiest option for your version of Windows and work down the list if needed.
Storage Sense (Windows 10 & 11) — The Easiest Route
Storage Sense is the modern, GUI-based approach built into Windows 10 (version 2004 and later) and all versions of Windows 11. It surfaces temporary files including the previous installation folder in one clear list.
- Open Settings with Win + I.
- Go to System > Storage.
- Select Temporary files (Windows 11) or Cleanup recommendations (Windows 10).
- Check the box labeled Previous Windows installation(s).
- Click Remove files (Windows 11) or Clean up (Windows 10).
- Confirm with Continue or Yes.
When the process finishes, the Windows.old folder is gone and the space is available to the system. You’ll see the drive capacity increase by the folder’s original size.
Disk Cleanup — Works On Every Version
The legacy Disk Cleanup tool has been part of Windows since XP and handles Windows.old on any supported version. The one step most people miss is clicking Clean up system files — without it, the previous-installation option never appears.
- Open File Explorer with Win + E, right-click the C: drive, and select Properties.
- Click Disk Cleanup.
- Click Clean up system files (this requires administrator access).
- Select the C: drive again if prompted.
- Check Previous Windows installation(s).
- Click OK, then Delete Files, and confirm with Yes.
Disk Cleanup reports how much space the previous installation uses before you confirm. Success looks like a finished progress dialog and an empty Windows.old folder when you revisit C:\.
For the official walkthrough of both methods, see Microsoft’s guide to deleting your previous version of Windows.
| Method | Best For | Core Step |
|---|---|---|
| Storage Sense | Windows 10 (2004+) and Windows 11 | Settings > System > Storage > Temporary files |
| Disk Cleanup | Any Windows version from XP onward | Right-click C: drive > Properties > Disk Cleanup > Clean up system files |
| Command Prompt | When GUI tools fail or you need a recovery‑environment solution | takeown then rd /s /q, or boot to recovery and run rd |
Command Prompt — When The Other Methods Fail
Running rd /s /q C:\Windows.old from a standard Command Prompt usually returns an “Access Denied” error because the folder’s permissions block even the Administrator account. Two approaches work around this.
Grant ownership first. Open Command Prompt as Administrator and run:
takeown /F "C:\Windows.old" /A /R /D Y
Then run:
rd /s /q C:\Windows.old
Or boot into the recovery environment. From the Windows Recovery Environment (WinRE), open Command Prompt, run diskpart then list volume to confirm which drive letter holds your Windows installation (it may be D: or E: rather than C:), then run:
rd /s /q D:\Windows.old
The command succeeds silently — no confirmation message means it worked. Reboot normally and verify the folder is gone in File Explorer.
| Mistake | Why It Fails | The Fix |
|---|---|---|
| Right‑click delete in File Explorer | System permissions block standard deletion | Use Storage Sense, Disk Cleanup, or Command Prompt |
| Skipping “Clean up system files” in Disk Cleanup | The previous‑installation option stays hidden | Click the system‑files button first |
Running rd without takeown |
Permission denied on protected folders | Claim ownership first, or boot into recovery |
Assuming drive letter C: in recovery |
The recovery environment may assign a different letter | Run diskpart > list volume to verify |
When To Keep Windows.old Instead
Do not delete the folder if you’re still testing the new Windows version. The 10-day rollback window is your only path back to the old OS without a clean reinstall. If a critical program doesn’t work, a driver is missing, or the system feels unstable, keep Windows.old until you’re certain the upgrade is solid. Once you delete it, the previous version is gone permanently.
The Safest Deletion Sequence
Open Storage Sense first — it’s the fastest and carries the least risk of a misstep. If you’re on an older version of Windows or prefer a familiar interface, Disk Cleanup works identically. Only reach for the Command Prompt route when both GUI tools either refuse to show the previous-installation option or report that no files are available. One clean pass through any of these methods reclaims gigabytes and leaves your current system untouched.
References & Sources
- Microsoft Support. “Delete your previous version of Windows.” Official steps for removing Windows.old via Settings and Disk Cleanup.
- ElevenForum. “Delete Windows.old Folder in Windows 11.” Detailed command-line and recovery-environment instructions.
