SCCM Configmgr how to clean ccmcache content older than x days using compliance settings

A friend of mine (you know who you are) asked help (kind of) ,how to clean up the content inside ccmcache folder in better way instead of using script to deploy it as application/package/task sequence . I would recommended to use compliance settings(configuration item/configuration baseline) to deploy the script on schedule basis (monthly once or…