Remove Previous Windows Installation Files on Windows 11
In this article
To remove previous Windows installation files on Windows 11, use the built-in Disk Cleanup tool or the Storage settings to delete the Windows.old folder and other leftover system files. This frees up several gigabytes of disk space after a major update or upgrade. You’ll need an administrator account and at least a few minutes; no third-party software is required.
What You'll Need
- An administrator account on Windows 11 (you’ll be prompted to confirm).
- At least 5–10 minutes of uninterrupted time (deletion can take a while).
- A stable power connection if you’re on a laptop (avoid interruption during deletion).
Step-by-Step
- Open Disk Cleanup. Press the Windows key, type Disk Cleanup, and select the app from the results. If you’re not sure which drive has the old files, it’s almost always your system drive (usually C:).
- Select the system drive. In the drive selection dialog, choose the drive where Windows is installed (typically C:) and click OK. Disk Cleanup will scan the drive for files it can remove.
- Open the system files cleanup. After the initial scan, click the Clean up system files button. This requires administrator permission—click Yes if prompted. Disk Cleanup will rescan, this time including system-level files.
- Check “Previous Windows installation(s)” and related items. In the list of files to delete, look for Previous Windows installation(s) (this is the Windows.old folder). Also check Temporary Windows installation files and Temporary files if you want to clear more space. Leave other options unchecked unless you’re sure you don’t need them (e.g., “Windows Update Cleanup” is safe to check).
- Start the deletion. Click OK, then confirm by clicking Delete Files in the warning dialog. The process may take 10–30 minutes depending on how much data is there. Do not turn off your PC during this time.
- Verify the space was freed. After completion, open File Explorer, right-click your system drive, and select Properties. The used space should have dropped significantly. You can also check that the Windows.old folder is gone by navigating to C:\Windows.old—if it still exists, repeat the steps or use the alternative method below.
Alternative method using Storage settings:
- Open Settings (Windows key + I) and go to System > Storage.
- Click Temporary files. Windows will scan and show a list of file categories.
- Look for Previous Windows installation(s) and check the box next to it. You can also check Temporary Windows installation files and Delivery Optimization Files if you want.
- Click Remove files at the top of the list. Confirm if prompted.
Note: Menu labels can vary slightly depending on your Windows 11 version and region, but the core options are the same.
Common Mistakes
- Not running as administrator: If you don’t click “Clean up system files,” you won’t see the Windows.old option.
- Deleting before you’re ready: Once you delete previous Windows installation files, you cannot roll back to the previous version of Windows using the built-in recovery options. Make sure you’re happy with the current version.
- Deleting other system files: Be careful not to check items like “Windows ESD installation files” unless you’re sure you don’t need them for recovery (they can be several GB). If you’re unsure, leave them.
- Interrupting the deletion: Turning off your PC during deletion can leave the system in an inconsistent state. Let it finish.
Tips
- Check your disk space first: Open Settings > System > Storage to see how much space Windows.old is using. This helps you decide if it’s worth deleting.
- Use Disk Cleanup for a more thorough job: The Storage settings method sometimes doesn’t show all system files; Disk Cleanup’s “Clean up system files” is more reliable.
- Keep a backup: Before deleting, ensure your important files are backed up (e.g., to an external drive or cloud). This is good practice before any major system cleanup.
- If you want to keep the rollback option: You can compress Windows.old instead of deleting it. Right-click the C: drive in File Explorer, select Properties > Disk Cleanup > Clean up system files, and check “Previous Windows installation(s)”—but instead of deleting, you can use the “Compress” option if available (not always present). However, compression is rarely worth it; deletion is the standard.
Troubleshooting
If Disk Cleanup doesn’t show “Previous Windows installation(s)”:
- Make sure you clicked Clean up system files—without that, the option won’t appear.
- If it still doesn’t show, the Windows.old folder may already be gone (Windows automatically deletes it after 10 days). You can check by opening File Explorer and looking for C:\Windows.old. If it’s not there, there’s nothing to delete.
If the deletion fails or gets stuck:
- Restart your PC and try again. A reboot often clears any file locks.
- Run Disk Cleanup again and only select “Previous Windows installation(s)”—sometimes other selections cause issues.
- If it’s still stuck, open Command Prompt as administrator and run
cleanmgr /sageset:1thencleanmgr /sagerun:1to launch Disk Cleanup with advanced options. This is a built-in tool, not a third-party utility.
If you see “Access denied” or “File in use”:
- Close all running programs, especially File Explorer windows. You can also try restarting in Safe Mode (hold Shift while clicking Restart, then choose Troubleshoot > Advanced options > Startup Settings > Restart, then press 4). In Safe Mode, the old files are less likely to be locked.
If you still can’t delete Windows.old manually:
- You can take ownership of the folder, but that’s risky and rarely needed. Instead, try using the Storage settings method or run Disk Cleanup again after a reboot.
Frequently Asked Questions
How long does Windows keep the previous installation files?
Windows automatically deletes the Windows.old folder after 10 days. However, you can delete it earlier using the steps above.
Will deleting previous Windows installation files break my current Windows?
No. It only removes the old version’s files, which are no longer needed for the current system to run. It does not affect your current Windows 11 installation.
Can I delete Windows.old manually by just deleting the folder?
You can try, but you’ll likely get “access denied” errors because the folder contains system files with special permissions. It’s safer and more reliable to use Disk Cleanup or Storage settings.
What if I want to go back to the previous version of Windows after deleting?
Once you delete the previous installation files, you cannot use the built-in “Go back” option in Settings > System > Recovery. You would need to reinstall the older Windows version from scratch.
Does deleting these files free up space immediately?
Yes, the space is freed as soon as the deletion completes. You can verify by checking the drive’s free space in File Explorer.
Is it safe to delete “Windows Update Cleanup” files as well?
Yes, those are old update files that are no longer needed. They can free up additional space and are safe to remove.