Windows.old folder in Windows 11/10
The Windows.old folder is generated if the following conditions are true:
You install a newer version of Windows on a computer on which an earlier version of Microsoft Windows is installed.You perform a custom installation of Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11 instead of an upgrade installation.You install Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11 on the drive on which had an earlier version installed.
This Windows.old folder contains the following folders from your old Windows installation:
WindowsDocuments and SettingsProgram Files
You can use this folder to retrieve any documents from your old installation, as follows:
Click Start, type %systemdrive%\Windows.old in the Start Search box, and hit Enter.Retrieve the files from the Windows.old folder.
Alternatively, you may simply use the Recover Personal Files Tool to retrieve files from the Windows.old folder.
Delete or remove Windows.old folder
After a Windows Upgrade, by default, a scheduled task is created and will run after four weeks to delete the Windows.old directory. But if you wish, you can also remove the Windows.old folder manually earlier. If you find that you no longer have any use for it, you may safely go ahead and delete it as follows:
Delete Windows.old folder using Disk Cleanup
Open Disk Cleanup Tool and select Files from all users on this computer. Click the Disk Cleanup tab, and then look for the Previous Windows installation(s) check box. You will need to click on Clean up system files button, in order to see this window.
Select Previous Windows installations. Click OK. This will remove the Windows.old folder.
Remove Windows.old folder using Command Prompt
Alternatively, you can also use a command prompt to delete files and folders from an earlier installation of Windows. To do this, Run ‘Command Prompt’ as administrator. First, you will need to take ownership of this folder, so at the command prompt, type and hit Enter. Next, in the command prompt, type and hit Enter. When you run this command, administrators are granted full rights to all files and to all folders. Finally, type and hit Enter. This will delete the windows.old folder.
UPDATE: SpaceWalker189 says in the Comments below, you can create a BAT file as follows: Copy-paste this in Notepad and save it as a .bat file. Read next: