Skip to content
Luca Dell'Oca Principal Cloud Architect @Veeam
Virtual To The Core Virtual To The Core

Virtualization blog, the italian way.

  • Media
  • About me
Virtual To The Core
Virtual To The Core

Virtualization blog, the italian way.

Quick tip: how to delete Windows.old folder

Luca Dell'Oca, May 15, 2014December 4, 2016

After an in-place upgrade in the latest versions of Windows (2008 and up), the installation keeps a complete copy of the previous operating system into a folder named “Windows.Old”, in case you’d like to revert the upgrade. This is a useful option, but it leave your installation with a huge wasted space on the disk.

If you simply try to delete the folder from the file explorer, you will find out it is locked. In a previous article titled Reclaim disk space after an in-place upgrade to Windows Server 2012, I explained how it was possible to remove this folder by installing the Disk Cleanup feature. However, this method requires a reboot, so I was looking for a better solution, and I found a quicker method that does not requires a reboot.

Open a command prompt with administrative privileges, and run this three commands:

takeown /F c:\Windows.old\* /R /A /D Y
cacls c:\Windows.old\*.* /T /grant administrators:F
rmdir /S /Q c:\Windows.old

The old directory is gone, and you have reclaimed a large amount of disk space.

Share this:

  • Share on X (Opens in new window) X
  • Share on Facebook (Opens in new window) Facebook
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Email a link to a friend (Opens in new window) Email
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Reddit (Opens in new window) Reddit
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Pocket (Opens in new window) Pocket
Tech 2008deletereclaimspacewindows

Post navigation

Previous post
Next post

Search

Latest Posts

  • Upgrading my Packer Templates for Ubuntu 24.04 on vSphere 8, with the help of AI
  • Easily build Linux DNS servers for your home lab using Webmin
  • Connect to your home lab with RDP via browser using Cloudflare
  • Quick Tip: mount a SMB network share in Windows Linux Subsystem
  • How to create a 2-nodes HA cluster in Proxmox using Qdevice
©2026 Virtual To The Core | WordPress Theme by SuperbThemes
We use cookies to ensure that we give you the best experience on our website, and to collect anonymous data regarding navigations stats using 3rd party plugins; they all adhere to the EU Privacy Laws. If you continue to use this site we will assume that you are ok with it.