Maintaining ConfigMgr (SCCM) Software Update Point and WSUS

Here is an EXCELLENT article on properly maintaining the ConfigMgr Software Update Point and WSUS, deleting old/superseded updates, performing  a defragmentation/re-indexing job on the WSUS database, as well as resolving  the following errors from theWindows Update agent :
OnSearchComplete – Failed to end search job. Error = 0x80244022. 
Scan failed with error = 0x8024402