Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: How to remove Win 7 Install files?

12 Nov 2009   #11
Microsoft MVP


I used Home Premium Upgrade on two home computers which I set up to run as Administrator first thing after install running this CMD as administrator: net user administrator /active:yes

I then went into User Accounts and deleted my named account and files since there weren't any yet.

I am running as full Admin still in 7HP.

My System SpecsSystem Spec
27 Nov 2009   #12

Microsoft Windows 7 Professional 64-bit Service Pack 1

Purchased the Upgrade from W7Prem to W7Pro and now have the Admin account.

On the other than the main drive that still has the Windows directory, I took ownership, then changed the Owner to the Admin, but still had to change each directory one at a time to get the permission to delete the files and than that single directory. This takes forever!

How do you get the permission to delete after being the Owner?

I still have many directories and another drive to do the same thing to remove the Windows directory. Is there an easier way to delete this entire directory at once and not one at a time?
My System SpecsSystem Spec
27 Nov 2009   #13

Microsoft Windows 7 Professional 64-bit Service Pack 1

I found the answer and it worked!!!
1. open an elevated command prompt as administrator
issues the following commands:
3. For Files:
takeown /f file_name /d y
icacls file_name /grant administrators:F

4. For Folders or Directories (will perform action recursively):
takeown /f directory_name /r /d y
icacls directory_name /grant administrators:F /t

5. Then just delete it.............gone!
My System SpecsSystem Spec


 How to remove Win 7 Install files?

Thread Tools

Similar help and support threads
Thread Forum
What are these files? I cant add or remove them
Chillout Room
How Remove Bad New Win7 Install from Dual install with XP machine?
I have an old XP machine. An Acer Aspire. I put Win7 Ultimate on it but it hasn't taken. Always gives me an error message and asks for the install disk again - which was a USB stick - but when i provide it nothing changes. So I need to get it off and start again. I have 3 physical...
Installation & Setup
office 2013 install failed now cant re-install or remove
Hey, I have a problem with my laptop when trying to re-install Office 2013 preview edition - basically the initial install failed for some reason and can I can neither remove or install this software leaving me in some sort of Microsoft limbo. Someone I know suggested logging onto the "my...
Microsoft Office
Remove Virtual Box Files, Files Left Behind?
I'm on Windows 7. I know that I had Virtual Box on my pc in the past. I don't see it in Add/Remove Programs, probably because I already removed it. But my C drive is filling up and SpaceSniffer shows that I have a folder named .VirtualBox which is 13.4 GB. How can I remove this to make space on my...
I can't remove files from my OLD XP
I can't remove old personal files present in my old XP. I don't need them anymore and I can't delete them in any ways I can find. I tried using FileShredders and ETC, Removing it using CMD forcefully, .. and the file is not in use. It would be nice if someone would help me. :) Thanks in...
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 05:41.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App