Clear local Cache in PDM Enterprise API

I am wondering if there is a way to setup a Windows scheduledtask that will automatically clear my local PDM cache at a settime. I have been told that it is possible but I am not sure how tocode it or even set it up.

ThanksSolidworksApi macros