ANAVEM
Languagefr
How to Delete Windows.old Folder to Free Up Disk Space

How to Delete Windows.old Folder to Free Up Disk Space

Learn to safely remove the Windows.old folder using multiple methods including Storage Settings, Disk Cleanup, and PowerShell commands to reclaim valuable disk space after Windows upgrades.

Evan MaelEvan Mael
March 26, 2026 12 min
easywindows 6 steps 12 min

Why Does Windows Create the Windows.old Folder?

When you upgrade Windows (from Windows 10 to Windows 11, or during major feature updates), the system automatically creates a Windows.old folder on your primary drive. This folder contains your previous Windows installation files, including the old operating system, installed programs, and user data. It serves as a safety net, allowing you to roll back to your previous Windows version if the upgrade causes problems.

The Windows.old folder typically consumes 15-25 GB of valuable disk space, sometimes even more depending on your previous installation. While Windows automatically deletes this folder after 10 days (in newer versions) or 30 days (in older versions), many users prefer to remove it manually once they're confident their system is running properly.

What Are the Risks of Deleting Windows.old?

Before proceeding with deletion, understand that removing Windows.old is permanent. Once deleted, you cannot roll back to your previous Windows version through the standard recovery options. However, this limitation only affects the built-in rollback feature - you can still perform a clean installation of your previous Windows version if needed, though you'll lose installed programs and personal files unless backed up separately.

The deletion process itself is safe and won't harm your current Windows installation. Microsoft provides multiple built-in tools specifically designed for this purpose, ensuring the process respects system file protections and doesn't interfere with running processes.

Which Deletion Method Should You Choose?

This tutorial covers six different methods, from beginner-friendly GUI options to advanced command-line techniques. The Storage Settings method (Method 1) is recommended for most users as it's the safest and provides clear feedback about space recovery. IT professionals managing multiple systems may prefer the PowerShell approach (Method 4) for its automation capabilities. The permission-based methods (Methods 5-6) are reserved for situations where standard deletion fails due to file locks or access restrictions.

Implementation Guide

Full Procedure

01

Use Storage Settings (Recommended Method)

The Storage Settings method is the safest and most user-friendly approach for removing Windows.old. This built-in Windows feature handles permissions automatically and provides clear feedback.

For Windows 11:

  1. Press Win + I to open Settings
  2. Navigate to System > Storage
  3. Click on Temporary Files
  4. Scroll down and check the box for Previous Windows Installations
  5. Review the space that will be freed (typically 15-25 GB)
  6. Click Remove files to confirm deletion

For Windows 10:

  1. Open Settings using Win + I
  2. Select System
  3. Select Storage
  4. Click Configure Storage Sense or run it now
  5. Under Free up space now, select Delete previous version of Windows
  6. Click Clean now
Pro tip: This method shows exactly how much space you'll recover before deletion, helping you make an informed decision.

Verification: Open File Explorer and navigate to your C: drive. The Windows.old folder should no longer be visible. Check your available disk space in Storage Settings to confirm the space has been reclaimed.

02

Run Disk Cleanup Tool

Disk Cleanup is a legacy Windows tool that remains highly effective for removing Windows.old. It provides granular control over what gets deleted and works consistently across Windows versions.

Quick Access Method:

cleanmgr
  1. Press Win + R to open the Run dialog
  2. Type cleanmgr and press Enter
  3. Select your system drive (typically C:)
  4. Wait for the initial scan to complete
  5. Click Clean up system files (requires admin privileges)
  6. Wait for the extended scan
  7. From the list, check Previous Windows installations
  8. Review other items you want to clean (optional)
  9. Click OK, then Delete Files to confirm

Alternative File Explorer Method:

  1. Press Win + E to open File Explorer
  2. Right-click your system drive (C:) and select Properties
  3. Click Disk Cleanup
  4. Click Clean up system files
  5. Check Previous Windows Installation(s)
  6. Click OK and confirm deletion
Warning: Always click "Clean up system files" first. The regular Disk Cleanup won't show the Windows.old option without this step.

Verification: Run dir C:\Windows.old in Command Prompt. You should see "File Not Found" or "The system cannot find the path specified."

03

Configure Automated Cleanup via Command Prompt

This method creates a saved configuration for Disk Cleanup that you can reuse. It's particularly useful for IT administrators managing multiple systems.

Open Command Prompt as administrator by pressing Win + X and selecting Command Prompt (Admin) or Terminal (Admin).

Step 1: Create the configuration

cleanmgr /sageset:1

This opens a configuration window where you can select what to clean. Check Previous Windows installation and any other items you want included in future cleanups. Click OK to save this configuration as profile #1.

Step 2: Execute the cleanup

cleanmgr /sagerun:1

This runs the cleanup using the saved configuration. The process will execute silently in the background.

Advanced scheduling option:

schtasks /create /tn "Windows.old Cleanup" /tr "cleanmgr /sagerun:1" /sc monthly /mo 1

This creates a scheduled task that runs the cleanup monthly.

Pro tip: You can create multiple profiles (sageset:2, sageset:3, etc.) for different cleanup scenarios. Use sageset:65535 for a one-time configuration that won't be saved.

Verification: Check the Command Prompt output for completion messages. Run dir C:\Windows.old to confirm the folder is gone.

04

Use PowerShell for Direct Deletion

PowerShell provides the most direct method for removing Windows.old, especially useful for scripting and automation. This method bypasses the GUI entirely.

Open PowerShell as administrator by pressing Win + X and selecting PowerShell (Admin) or Terminal (Admin).

Basic deletion command:

Remove-Item "C:\Windows.old" -Recurse -Force

Command breakdown:

  • Remove-Item: PowerShell cmdlet for deleting files and folders
  • -Recurse: Deletes all files and subfolders recursively
  • -Force: Overrides file and permission restrictions

Enhanced command with progress and confirmation:

if (Test-Path "C:\Windows.old") {
    Write-Host "Windows.old folder found. Size: $((Get-ChildItem "C:\Windows.old" -Recurse | Measure-Object -Property Length -Sum).Sum / 1GB) GB"
    Remove-Item "C:\Windows.old" -Recurse -Force -Verbose
    Write-Host "Windows.old folder deleted successfully."
} else {
    Write-Host "Windows.old folder not found."
}

This enhanced script checks if the folder exists, shows its size, provides verbose output during deletion, and confirms completion.

For multiple drives (if Windows.old exists elsewhere):

Get-PSDrive -PSProvider FileSystem | ForEach-Object {
    $path = "$($_.Name):\Windows.old"
    if (Test-Path $path) {
        Write-Host "Removing Windows.old from drive $($_.Name):"
        Remove-Item $path -Recurse -Force
    }
}
Warning: PowerShell deletion is immediate and irreversible. Unlike Disk Cleanup, there's no recycle bin for system folders deleted this way.

Verification: Run Test-Path "C:\Windows.old" in PowerShell. It should return False if deletion was successful.

05

Handle Permission Issues with Ownership Transfer

Sometimes Windows.old deletion fails due to permission restrictions or file locks. This method transfers ownership and modifies permissions before deletion.

Open Command Prompt as administrator and run these commands in sequence:

Step 1: Take ownership of the folder

takeown /F "C:\Windows.old" /A /R /D Y

Command breakdown:

  • /F: Specifies the file or folder
  • /A: Gives ownership to Administrators group
  • /R: Performs recursive operation
  • /D Y: Automatically answers "Yes" to prompts

Step 2: Grant full permissions

icacls "C:\Windows.old" /grant *S-1-5-32-544:F /T /C /Q

Command breakdown:

  • *S-1-5-32-544: Security identifier for Administrators group
  • :F: Grants full control
  • /T: Applies to all files and subfolders
  • /C: Continues on errors
  • /Q: Quiet mode (suppresses success messages)

Step 3: Delete the folder

RD /S /Q "C:\Windows.old"

Alternative PowerShell approach for stubborn files:

$acl = Get-Acl "C:\Windows.old"
$accessRule = New-Object System.Security.AccessControl.FileSystemAccessRule("Administrators","FullControl","ContainerInherit,ObjectInherit","None","Allow")
$acl.SetAccessRule($accessRule)
Set-Acl "C:\Windows.old" $acl
Remove-Item "C:\Windows.old" -Recurse -Force
Pro tip: If you get "Access Denied" errors even with these commands, restart your computer and try again. Some files may be locked by running processes.

Verification: Run dir C:\ and confirm Windows.old is no longer listed. Check Event Viewer (Windows Logs > System) for any related error messages.

06

Delete from Safe Mode (Last Resort)

When all other methods fail, Safe Mode provides a minimal Windows environment where fewer files are locked, making deletion possible.

Step 1: Boot into Safe Mode

For Windows 10/11:

  1. Press Win + I to open Settings
  2. Go to Update & Security > Recovery (Windows 10) or System > Recovery (Windows 11)
  3. Under Advanced startup, click Restart now
  4. Select Troubleshoot > Advanced options > Startup Settings
  5. Click Restart
  6. Press 4 or F4 to select Safe Mode

Alternative method using Command Prompt:

shutdown /r /o /f /t 00

This forces an immediate restart into the recovery environment.

Step 2: Delete Windows.old in Safe Mode

Once in Safe Mode:

  1. Press Win + E to open File Explorer
  2. Navigate to your system drive (typically C:)
  3. Locate the Windows.old folder
  4. Right-click and select Delete
  5. Confirm any permission prompts
  6. Wait for deletion to complete

Command Prompt method in Safe Mode:

cd /d C:\
rd /s /q Windows.old

Step 3: Return to Normal Mode

Restart your computer normally. Windows will boot into regular mode automatically.

Warning: Safe Mode should only be used when standard methods fail. Some system functions are limited in Safe Mode, so complete the deletion quickly and restart normally.

Verification: After returning to normal mode, open File Explorer and confirm the Windows.old folder is gone. Check your disk space to see the recovered storage.

Frequently Asked Questions

Is it safe to delete the Windows.old folder after upgrading to Windows 11?+
Yes, it's completely safe to delete Windows.old after confirming your Windows 11 upgrade is working properly. This folder contains your previous Windows installation and is only needed if you want to roll back. Once deleted, you cannot use the built-in rollback feature, but your current Windows 11 installation remains unaffected. Microsoft provides multiple official tools specifically for this purpose.
How much disk space will I recover by deleting Windows.old?+
Typically, you'll recover 15-25 GB of disk space, though this can vary significantly based on your previous Windows installation size, installed programs, and user data. The exact amount is shown before deletion when using Storage Settings or Disk Cleanup. Larger installations with many programs or extensive user profiles may result in 30-40 GB of recovered space.
What happens if I delete Windows.old and need to go back to Windows 10?+
Once Windows.old is deleted, you cannot use Windows' built-in rollback feature to return to Windows 10. However, you can still downgrade by performing a clean installation of Windows 10, though this requires backing up your data first and reinstalling all programs. The deletion only removes the convenient rollback option, not the possibility of downgrading entirely.
Why can't I delete Windows.old folder manually through File Explorer?+
Windows protects the Windows.old folder with special permissions and file attributes that prevent standard deletion through File Explorer. The folder contains system files that require administrator privileges and specific deletion methods. Attempting to delete it manually often results in "Access Denied" errors. You must use official Windows tools like Storage Settings, Disk Cleanup, or PowerShell with administrator privileges.
Will Windows automatically delete the Windows.old folder if I don't remove it manually?+
Yes, Windows automatically deletes the Windows.old folder after a predetermined period - typically 10 days in newer Windows versions or 30 days in older versions. This automatic cleanup is handled by Storage Sense and occurs during regular system maintenance. However, many users prefer manual deletion to immediately reclaim the disk space rather than waiting for the automatic process.
Evan Mael
Written by

Evan Mael

Microsoft MCSA-certified Cloud Architect | Fortinet-focused. I modernize cloud, hybrid & on-prem infrastructure for reliability, security, performance and cost control - sharing field-tested ops & troubleshooting.

Discussion

Share your thoughts and insights

Sign in to join the discussion