Skip to content
How to SCCM Delete Expired Updates from WSUS using Script ConfigMgr Endpoint Manager

How to SCCM Delete Expired Updates from WSUS using Script ConfigMgr Endpoint Manager

Written By Anoop C Nair
Last Updated July 26, 2024
Posted In SCCM
SHARE

How do I SCCM delete expired updates from WSUS using Script ConfigMgr Endpoint Manager? I’ve seen many people like me searching for better solutions to delete expired ( software ) updates from software update packages and DPs.

This action can save a lot of disk space if you’ve been using SCCM / ConfigMgr 2007 since its early days.

Update on 18th Jan 2018 –How To Setup WSUS Cleanup Task From SCCM Console Configuration Manager ConfigMgr MEMCM HTMD Blog (anoopcnair.com).

 Here is an excellent script to delete the expired updates shared by Raphael.

Patch My PC

SCCM Delete Expired Updates from WSUS

SCCM Delete Expired Updates from WSUS
SCCM Delete Expired Updates from WSUS

Update – I think the above script is not available. You can get a more useful script from the following Link – Script to Clean Up Software Update Objects.

Jump into the following post if you want to know more about the cleanup process for CM /SCCM /ConfigMgr 2012 – Software Update Content Cleanup in System Center 2012 Configuration Manager.

Update 16-OCT-2012: Here is another Script to Clean expired updates from update lists, packages, and deployments – Minfang Lu.

I want to add one more reference to this post. How to maintain your WSUS DB?

Also, some important points about clean-up and re-index of WSUS DB.

These activities should be scheduled quarterly or half-yearly so that you can avoid sync issues explained in the below blog post.

Full Post –  Clean the WSUS and maintain WSUS.

We are on WhatsApp. To get the latest step-by-step guides and news updates, Join our Channel. Click here –HTMD WhatsApp.

Author

Anoop C Nair has been Microsoft MVP from 2015 onwards for 10 consecutive years! He is a Workplace Solution Architect with more than 22+ years of experience in Workplace technologies. He is also a Blogger, Speaker, and leader of the Local User Group Community. His main focus is on Device Management technologies like SCCM and Intune. He writes about technologies like Intune, SCCM, Windows, Cloud PC, Windows, Entra, Microsoft Security, Career, etc..

Written by

Anoop C Nair is Workplace Technology solution architect with 25+ years of experience in global enterprise organizations such as JP Morgan, Capgemini, etc. Microsoft Certified Trainer. Microsoft MVP from 2015 onwards for consecutive 11+ years! He also conducts Intune and modern workplace tech training for enterprise organizations. He is Blogger, Speaker, and Founder of HTMD Community and HTMD Conference. His main focus is on Device Management technologies like Intune, Windows, Cloud PC. He writes about technologies like Intune, SCCM, Windows, Cloud PC, Windows, Entra, Microsoft Security.

Discussion

Join the discussion

Your email address will not be published. Required fields are marked *

Related guides

Intune

Windows 11 KB5101650 KB5099414 July 2026 Patch and 3 Zero Day Vulnerabilities and 570 Flaws

Key Takeaways Windows 11 KB5101650 KB5099414 July 2026 Patch and 3 Zero Day Vulnerabilities and 570 Flaws! In the July 2026 Patch, Microsoft introduced new features designed to improve the overall Windows experience. The update adds enhancements to Windows Update for more flexible update management and introduces Point-in-Time Restore, providing an additional recovery option for […]

AC Anoop C Nair 9 min read
Intune

2026 June KB5094126 KB5093998 Windows 11 Patch | 3 Zero Day Vulnerabilities and 200 Flaws

Key Takeaways 2026 June KB5094126 KB5093998 Windows 11 Patch | 3 Zero Day Vulnerabilities and 200 Flaws! The June 2026 Windows 11 Patch Tuesday update brings several improvements to File Explorer. It adds support for additional archive formats, including UU, CPIO, XAR, and NuGet Packages (NUPKG). The update also preserves View and Sort preferences in […]

AC Anoop C Nair 10 min read
Intune

2026 May KB5089549 KB5087420 Windows 11 Patch | 0 Zero Day Vulnerabilities and 120 Flaws

Key Takeaways The Windows 11 May 2026 Patch KB5089549 KB5087420 Update brings important security fixes, performance improvements, and reliability enhancements across the operating system. The update introduces new features such as Xbox Mode for gaming, File Explorer improvements, enhanced input and sharing experiences, better taskbar and Windows Hello reliability, and additional enterprise management capabilities for […]

AC Anoop C Nair 8 min read
SCCM

ConfigMgr 2603 Introduces New Early Update Enrollment Process

Key Takeaways In this post we are discussing the ConfigMgr 2603 Introduces New Early Update Enrollment Process. Microsoft has officially released Configuration Manager version 2603 to the Early Update Ring, giving organizations an opportunity to test upcoming improvements before the global production rollout. The release is targeted at enterprises running ConfigMgr version 2409 or later […]

AC Anoop C Nair 3 min read