Deleting updates directly from WSUS

David Zemdegs 1,596 Reputation points
2020-11-16T20:56:44.39+00:00

Greetings,
We have a bloated WSUS full with AMD and other rubbish.
Can we manually delete a bunch of updates direct from WSUS using powershell if that WSUS is a SUP for MEMCM?
Will CM work out stuff no longer exists and automatically delete metadata stored in its system? Or will the metadata hang around?
If so, can the CM metadata be deleted?

Thanks
David Z

Microsoft Configuration Manager
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
1,044 questions
{count} votes

10 answers

Sort by: Most helpful
  1. Jason Sandys 31,411 Reputation points Microsoft Employee Moderator
    2020-11-17T03:10:45.743+00:00

    You cannot delete updates from WSUS. You can however decline update directly in WSUS. This will cause ConfigMgr to mark the update as expired and if the update is not deployed, ConfigMgr will remove the update after 7 days.

    Lots of details on all of the cleanup behaviors at https://learn.microsoft.com/en-us/mem/configmgr/sum/deploy-use/software-updates-maintenance

    2 people found this answer helpful.
    0 comments No comments

  2. Adam J. Marshall 10,281 Reputation points MVP
    2020-11-16T21:04:57.317+00:00

    This is actually what WSUS Automated Maintenance (WAM) does with declined updates, and Drivers.

    1 person found this answer helpful.
    0 comments No comments

  3. David Zemdegs 1,596 Reputation points
    2020-11-16T21:21:29.997+00:00

    The WAM removes 'obsolete' updates. How is 'obsolete' defined?

    1 person found this answer helpful.
    0 comments No comments

  4. Adam J. Marshall 10,281 Reputation points MVP
    2020-11-16T21:40:19.037+00:00

    Microsoft's APIs, but that's not just what I was referring to. WAM also removes declined updates quarterly from the database - using PowerShell's APIs.

    1 person found this answer helpful.
    0 comments No comments

  5. David Zemdegs 1,596 Reputation points
    2020-11-16T21:45:46.667+00:00

    You are talking about a third party product?

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.