Download Start-WsusServerCleanup
Automates running the Server Cleanup Wizard against against your parent WSUS server and recursively against all your downstream WSUS servers. It can e-mail a report including WSUS Server, Parent WSUS Server, WSUS Version of each server processed as well as details of the cleanup.
https://gallery.technet.microsoft.com/scriptcenter/WSUS-Server-Cleanup-f33d2658