Hi,
There is a new script available to cleanup SCCM cache files from the client-side:
## Initialize the CCM resource manager com object
[__comobject]$CCMComObject = New-Object -ComObject 'UIResource.UIResourceMgr'
## Get the CacheElementIDs to delete
$CacheInfo = $CCMComObject.GetCacheInfo().GetCacheElements()
## Remove cache items
ForEach ($CacheItem in $CacheInfo) {
$null = $CCMComObject.GetCacheInfo().DeleteCacheElement([string]$($CacheItem.CacheElementID))
}
## This example doesn't prompt for confirmation to clear the recycle bins.
Clear-RecycleBin -DriveLetter C -Force
Clears the contents of the recycle bin: