Delete Windows.old Folder in Windows 11/10 – Access Denied?

Published by Nyau Wai Hoe - Updated on

We often have multiple Windows installed on a same computer, but most of them are no longer in used. Each Windows folder occupies around 20 GB or so hard drive’s space. Removing these old Windows folders will save you a significant amount of disk space. However, the Windows folder cannot be deleted simply by pressing Del or Shift-Del. The deletion will fail and you will get an “Access Denied” or “Permission needed” error that cannot be bypassed.

Thus, this guide will show you how to correctly and permanently remove old Windows folder that you no longer need in Windows 11 or Windows 10.

Also see: How to Force Delete a File in Use by Another Program on Windows 11/10

How to Delete Old Windows Folder in Windows 11/10

Delete Windows.old using Disk Cleanup

The easiest and the first method you should try before going for the harder ways is to use the Disk Cleanup tool in Windows 10/11. Here’s how.

On the drive where the Windows folder that you want to delete resides, right-click on the folder and rename it to Windows.old. This step is important as it is required for Disk Cleanup tool to detect there is an old Windows folder that can be removed.

Rename Windows.old access denied

After renaming the folder, go to start menu or Cortana, search for Disk Cleanup tool. Right-click it and then select Run as administrator.

Open Disk Cleanup Windows 11

Windows 11

Disk Cleanup Windows 10 delete Windows old folder

Windows 10

Select the drive where your Windows.old folder is located, then click OK.

Open Disk Cleanup delete Windows.old

Under Files to delete section, select the option for Previous Windows Installation(s). Then, click OK to begin the cleanup. It may take a couple of minutes to complete the removal. After the process is completed, the Windows folder should be gone.

Delete Old Windows Folder in Windows 10

Related: How to Delete System 32 in Windows 11

Delete Windows.old using Storage in Settings app

If the Disk Cleanup tool in Windows doesn’t work to remove the Windows.old folder (stuck or crashes during calculating or cleaning process), you can instead use the Storage sense in the Windows 11/10 Settings app to remove the folder. Similar to the method above, you will have to first rename the Windows folder that you want to remove to Windows.old.

Then, head over to the start menu and search for Storage. Select Storage (system settings) from the search result.

Open Storage settings to delete Windows old folder

In the right panel, select the drive where the Windows.old folder is located.

Delete Windows.old Windows 11

Windows 11

Select C: folder Windows 10

Windows 10

Within the list of storage usage, select Temporary files.

Storage Settings Windows 10 Temporary files

Scroll down to look for an option called “Previous Windows Installation(s)“. Select it and, alternatively, you can select other temporary files that you may want to remove together. Then, scroll back up and click on the Remove files button. Upon completion of the removal process, the Windows.old folder should be deleted.

How to Delete Old Windows Folder in Windows 10 Access Denied

Read: How to Delete a Ghost File or Folder in Windows 11/10

Delete old Windows folder manually with CMD

If both methods above fail to remove the Windows.old folder from your drive, or that the Previous Windows Installation option doesn’t show up in Disk Cleanup tool in Windows 11/10, here’s a manual way to remove the folder by using a series of commands in Command Prompt.

To do this, go to start menu and search for CMD. Right-click Command Prompt and then select Run as administrator. Enter the commands below each line at a time. NOTE: Replace C:\Windows.old with the actual path to the Windows.old folder you want to remove, if it’s not in C: drive.

takeown /F "C:\Windows.old" /A /R /D Y
icacls "C:\Windows.old" /T /grant administrators:F
rmdir /s /q "C:\Windows.old"

The first and second lines of commands may take some time to run. The first command is to take ownership of the entire Windows.old folder file by file, whereas the second is to give full control permissions to the Administrator group. The third line is to remove the folder entirely after successfully getting the permission.


Nyau Wai Hoe
Nyau Wai Hoe is the Founder and Chief Editor of WindowsDigitals.com. With a degree in software engineering and over 12 years of experience in the tech support industry, Nyau has established himself as an expert in the field, with a primary focus on the Microsoft Windows operating system. As a tech enthusiast, he loves exploring new technologies and leveraging them to solve real-life problems.