[ConfigMgr] Reclaiming Downloaded Software Update files

You may have noticed something worrying. Like the drive that is storing all of the contents in SCCM is slowly growing every month with no signs of it going down. Not sure what to do to reduce the used space? Here's a guide on how to do a clean up

SCCM's disk growing too large, not sure what to do? Here's something that may help.

Well if you are deploying Software updates to endpoint manually or by using ADR and have not performed a maintenance to remove updates that are superseded or expired this guide may be of help for you. Before we start there are a few things to take note

  • You need to be running SCCM 1702
  • You are assigned Full Administrator and the “All” Security scope SCCM

All good? Let's start!

1) On your SCCM Primary site server, go to Software Library\Software Updates\Software Update Groups

2) Select the Groups that you want to delete
Note : Remember to check which package the update files are stored at.

3) Right Click\Delete

4) Click Yes

5) Go to Deployment Package, Select the package used by the deleted Software update groups, Right Click\Show Members

6) Filter the search with the following

  • Downloaded = Yes
  • Deployed = No

Note : Remember to click on Search to update the showed items

7) At this point you can select all listed items, Right Click\Delete

8) Click OK

9) Launch CMD with Administrator Rights. Run the following command

cd C:\Program Files\Microsoft Configuration Manager\cd.latest\SMSSETUP\TOOLS\ContentLibraryCleanup

10) Enter the Command

ContentLibraryCleanup.exe /dp <your Primary Site>

11) Hit 'Y' and Press ENTER
Note : This will NOT delete anything, as it is running as a simulation (What-If Mode)

12) At the end of the run a Log will show

A total of 26GB can be reclaimed if the too was run in delete mode

13) Finally Let's run the command on delete mode, Press 'Y' and hit Enter
Note : This WILL delete the files that are listed in the log.

ContentLibraryCleanup.exe /dp ROBINSON-SCCM.ROBINSON.LOCAL /delete

14) An additional prompt will appear, Press 'A' and hit Enter

15) Once completed a log will also appear to show what has been removed

The changes for the free space on the disk may not be immediate.

The command tool's function is to remove content that are no longer associated with any package or application from a distribution point, hence you can also run the command and target any Distribution Point Servers if you have to reclaim space.