Windows 7 SP1 Disk Cleanup Tool

How Use the Windows 7 SP1 Disk Cleanup Tool

   Information
This will show you how to run the Windows 7 SP1 cleanup tool to permanently remove the backed up files created during the installation of the Windows 7 SP1 to gain back more hard drive space, and remove the Service Pack for Microsoft Windows (KB976932) entry in Installed Updates.

You must be logged in as an administrator to be able to do this tutorial.

   Note
The Windows 7 SP1 disk cleanup tool gave me back around 1.5 GB on my hard drive. This amount may vary on your computer.

To see how much space you recovered, make a note of how much free space you have on the C:/ drive in Computer before and after you run the Windows 7 SP1 cleanup tool. Afterwards, please post and let us know how much space you have recovered.
   Warning
It is recommended to wait about a week after installing SP1 to see how your Windows 7 is running with SP1 installed before deleting the SP1 backups as in the tutorial below. This way if you discover a issue, you will still have the option to uninstall SP1 if need be.

Once you delete the SP1 backup files, you will no longer be able to uninstall the Windows 7 SP1 afterwards. The only option would be a clean install or custom install.






OPTION ONE

Delete Windows 7 SP1 Backup Files Using Disk Cleanup

1. Open Disk Cleanup.

2. Select the drive (ex: C: ) that your Windows 7 is installed on, and click on OK. (see screenshot below) Step1.jpg
3. Click on the Clean up system files button. (see screenshot below) Step-2.jpg
4. If prompted by UAC, then click on Yes.

5. Select the drive (ex: C: ) that your Windows 7 is installed on, and click on OK. (see screenshot below) Step1.jpg
6. Check the Service Pack Backup Files box and click on OK. (see screenshot below) Step3.jpg
7. Click on Delete Files. (see screenshot below) Step4.jpg
8. The SP1 backup files will now be deleted. You will now no longer be able to uninstall the Windows 7 SP1, but have gained around 1 GB of hard drive space back.






OPTION TWO

Delete Windows 7 SP1 Backup Files Using a Elevated Command Prompt

1. Open a elevated command prompt (Run as administrator).

2. In the elevated command prompt, copy and paste the command below and press enter. (see screenshot below) dism /online /cleanup-image /spsuperseded /hidesp

CMD.jpg
3. After a few moments, you will see the The Operation completed successfully message. (see screenshot above)

4. Close the elevated command prompt. You will now no longer be able to uninstall the Windows 7 SP1, but have gained around 1 GB of hard drive space back.



OPTION THREE

Delete Windows 7 SP1 Backup Files Using a Command Prompt at Boot


NOTE: This option will also work on a slipstream Windows 7 SP1 installation at boot. 1. Open a command prompt at boot. (click on link for how)

2. To Verify the Windows 7 Drive Letter at Boot
NOTE: This needs to be done since the Windows 7 drive letter may not be C: if you have the 100 MB System Reserver partition created during installation, or if you multiboot with more than one operating system. A) In the command prompt, type diskpart and press Enter. (see screenshot below)

B) In the command prompt, type list volume and press Enter.

C) Make note of the drive letter (ex: D ) that you have Windows 7 installed on.
NOTE: It helps to look at the drive size and label to help ID the Windows 7 partition/drive.

D) In the command prompt, type exit and press Enter. Slipstream-1.jpg
E) Continue on to step 3.
3. To Delete the Windows 7 SP1 Backup Files at Boot A) In the command prompt, type the command below and press Enter. (see screenshot below)
NOTE: Substitute D: in the command below with the drive letter of your Windows 7 from step 2C above instead.
Code:
dism /image:[COLOR=red][B]D:[/B][/COLOR] /cleanup-image /spsuperseded /hidesp
Slipstream-2.jpg
B) After a few moments, you will see the The Operation completed successfully message. (see screenshot above)

C) Close the command prompt window, and restart the computer. You will now no longer be able to uninstall the Windows 7 SP1, but have gained around 1 GB of hard drive space back.
That's it,
Shawn







 
Last edited:
Hello Huge. Not bad. :)
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
First of all, thanks Brink for the great tutorial.

Well, to confirm all the questions being raised in this thread, here are my points:

1. I slip-streamed Windows 7 SP1 x86 downloaded from Microsoft into untouched Windows 7 Ultimate build 7600 x86 using RTLite x64 on a 64bit machine. It took good amount of time for the process but it succeeded without any errors. Original ISO size: 2.34GB; new ISO size: 2.70GB (means SP backup was not cleared and put into the ISO).

2. Used this ISO to burn a DVD and clean-installed using it. Tried Option 1&2 of this tutorial, didn't work. Disk cleanup shows 530MB of files ready for cleaning but never cleans it. Also, under "View updates" and "Update" history in CP, NOTHING is shown, means this is a true slip-streamed version, just with the backup files, which are totally useless in this case since you can't remove SP1 coz it's truly integrated.

3. Now did what has been explained in option 3. Worked like a charm. It took around 5 minutes there.

4. After restart, Windows started "Configuring updates" and "Cleaning up" before log on. This took around 10 minutes.

5. Now checked the space; gained around 900 MB of space. Good.

6. Disk cleanup still show the SP backup entry but now, its size is zero bytes. This entry can only be manually removed through registry. Google for that, I did.

Thanks and I would be glad if my post answers someone's questions. ;)


Well, I think I was too late, LOL. It's 2013!
 
wow
thanks
but now way to delete the other hotfixes backup?
like in xp

greetings
 

My Computer

Computer type
PC/Desktop
OS
windows 7 ultimate 64bit
Back
Top