For each week a sensor remains online various system logs will grow in size in addition to the log files specific to the Pulse related services. Whereas there is no method presently in use to purge (clean) log files, a sensor being online for a lengthy period of time (i.e. year or more) could inevitably encounter an issue with a lack of drive space leading to services stopping or the sensor abending.
The following script when run as a Script/Task within Pulse on weekly basis has proven useful to remove log files and to ensure the sensor does not encounter an issue involving a lack of drive space. Additionally the sensor will be rebooted upon conclusion of the script running.