Welcome to MSDN Blogs Sign in | Join | Help

Handy KB Article for Deleting Windows.old

If you've been dogfooding Windows 7 like I have, you have an orphaned windows.old directory on your hard drive and you need the space back from Windows.old to get the Windows 7 RTM.

When I Bing-ed for delete windows.old, I found KB Article 930527: How to use the Disk Cleanup feature to delete the Windows.old folder after you install Windows Vista.

 Paraphrasing (and tailoring to my situation Windows.old on the c: drive)

  1. Open a cmd window As Administrator
  2. takeown /F c:\windows.old\* /R /A
  3. cacls c:\windows.old\*.* /T /grant administrators:F (note had to delete, rmdir /q /s, my users directory by hand when cacls kept reporting "The system cannot find the path specified." on various files inside that directory)
  4. rmdir /S /Q c:\windows.old\

And now I have 28 gigs back on my c: drive.

Published Monday, October 19, 2009 2:04 PM by rflaming

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

No Comments

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker