Skip to content
Follow
Windows

How to Delete Windows.old Folder in Windows 11

Richard
Written by
Richard
Nov 21, 2021 Updated Oct 6, 2026 6 min read
How to Send and Receive Text Messages on Windows 11
How to Send and Receive Text Messages on Windows 11

The Windows.old folder stores your old operating system files after a major upgrade. Those files let you roll back to the previous version within 10 days. The folder often takes up more than 20 gigabytes on your C: drive.

Advertisement

Windows deletes this folder by itself after 10 days. If you are sure you do not need to roll back, you can remove it right now with built-in Windows tools and get the space back. This guide covers Disk Cleanup, Command Prompt, Storage Sense and a System File Checker scan for when the folder will not go away.

⚡ Quick Answer

Open Start , search for Disk Cleanup, select it, click Cleanup System Files, choose C: drive, scroll to Previous Windows installation(s), tick the box, and click OK. Windows removes the Windows.old folder and frees up the space without a restart.

Advertisement

Why delete the Windows.old folder?

Windows creates the Windows.old folder when you upgrade to a new version or install Windows over an existing copy. It holds the files from your previous Windows version, so Windows can put your PC back the way it was if the upgrade goes wrong. The folder usually takes 10GB to 30GB, and on a small SSD that is a big share of the drive.

You will not see it in normal use unless you open the C: drive in File Explorer . It is a system folder, and Windows may refuse to let you delete it with a plain right-click and Delete. That is why the methods below use Windows’ own cleanup tools.

What happens when done?

⚠️WarningDeleting the Windows.old folder frees up tens of gigabytes on your drive.

It also has a cost. Once the folder is gone, you permanently lose the ability to roll back to your previous Windows build through the normal Settings menu. There is no Recycle Bin for this, and there is no undo.

Before you delete it, check three things:

Advertisement
  • Windows 11 runs properly. Open your usual apps, check your printer and other devices, and make sure the network and sound work.
  • Your personal files are all where they should be. Windows.old can contain copies of your old user folders, so look in it first if anything seems to be missing.
  • You do not need any old system files. Once the folder is deleted, you only get them back with a backup or a clean install.
💡TipIf you are not completely sure, wait.

The 10-day countdown means Windows will clean up for you anyway.

WARNING: Deleting the Windows.old folder is permanent. Once removed, you cannot use the built-in Windows recovery feature to roll back to your previous version of the operating system. Ensure your computer is running perfectly before proceeding.

Disk Cleanup (a built-in tool that removes temporary and unneeded files) is the safest way to delete the Windows.old folder. Windows handles the permission checks and the removal of system files for you, so you are unlikely to hit errors. It works the same on Windows 11 Home and Pro. You open the tool, scan system files, tick the box for previous Windows installations, and let it clear the data.

  1. Click the Start button and search for Disk Cleanup.
  2. Select the app from the list. If a small window asks which drive to clean, choose C: and click OK. You should see the Disk Cleanup window after a short scan of the drive.
  3. Click the Cleanup System Files button. This needs administrator privileges, so approve the prompt if one appears. If you are on a standard account, sign in as an administrator first. Pick the C: drive again if asked.
  4. Wait while the tool scans your drive. This might take a few minutes. When it finishes, the list of files you can delete is updated.
  5. Scroll the list and look for Previous Windows installation(s). The size next to it is how much space you will get back. If the entry is missing, the folder has already been removed, either by you or by Windows after the 10 days.
  6. Tick the box next to it and click OK. Confirm the warning that the files will be permanently deleted. Cleanup may take several minutes, and a restart is normally not needed.
Windows.old folder in Windows 11 File Explorer
windows 11 windows.old folder delete
Deleting Windows.old folder in Windows 11
windows 11 delete windows.old folder
Disk Cleanup app interface in Windows 11
disk cleanup app in windows 11
Clean up system files button in Windows 11
windows 11 clean up system files button
Previous Windows installation files in Windows 11
windows 11 previous windows installation
Prompt to delete Windows.old folder in Disk Cleanup
windows 11 disk cleanup prompt to delete
Confirmation to delete previous Windows installation in Windows 11
windows 11 confirm delete windows installation

How to use Command Prompt for stubborn files

Command Prompt (a text-based tool used to run advanced instructions) is a fallback for when Disk Cleanup does not work. Open it with administrator rights and run one removal command that deletes the whole Windows.old directory in one go. Try Disk Cleanup first. This command skips every confirmation and does not use the Recycle Bin, so check the path before you press Enter.

  1. Click Start and search for cmd.
  2. Right-click Command Prompt and select Run as administrator. Click Yes if User Account Control asks. The window title should read Administrator: Command Prompt.
  3. Type the following command and press Enter. The "rd /s /q C:\Windows.old" command instructs Windows to delete the Windows.old folder. It removes the folder and all its contents without asking for confirmation, so the process is quick. The prompt returns with no message when it finishes. If you see Access is denied errors for some files, the command was not run as administrator, or those files are locked. In that case use the Disk Cleanup method above instead.

Automating cleanup with Storage Sense

You can also let Windows do this on its own. Go to Settings System Storage Storage Sense (a feature that automatically frees up disk space). Turn it on, and Windows will delete temporary files and old installation folders when storage runs low.

Advertisement

This is the hands-off option, and it will not remove the folder at once. To undo it, return to the same page and turn Storage Sense off. Anything it has already deleted stays deleted.

Troubleshooting: What if it still won't delete?

System File Checker (a diagnostic tool that finds and replaces broken system files) is worth running if the folder will not delete with the other methods. Damaged Windows components can make the cleanup tools fail. The scan does not delete Windows.old itself. It repairs corrupted system files so that Disk Cleanup or the Command Prompt method can work on a second try.

Run the scan from an administrator Command Prompt, as in the section above. Let it reach 100% before you close the window, because it can take a while. Restart your PC afterwards, then repeat Disk Cleanup.

💻Code
sfc /scannow

Run the System File Checker command shown above to repair any system file issues that might be preventing the deletion. For more details, visit the official Microsoft Support page.

Advertisement

Summary

The Windows.old folder holds files from your previous Windows version, and you can delete it to free up storage space if you don't plan to revert.

Is it safe to delete Windows.old?

Yes, it is safe to delete the Windows.old folder if you are satisfied with your current Windows 11 installation. It contains temporary system files from your previous OS. Deleting it removes the ability to roll back your system to the older version using built-in Windows tools.

Remember that deleting Windows.old cannot be undone. If you later need the old version back, you will need a backup you made earlier or a clean install of Windows.

Have a question about this guide?

Answered by AI from this guide. Good questions may be added to this page — please don't include personal details.

Tags: #Windows 11

Did this guide fix your problem?

Richard

About the Author

Richard

Tech Writer, IT Professional

Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.

Advertisement

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *