We recommend setting up a Windows Task or a Cron Job for Linux. 


If you are using Linux, you can set up a cron job:

You'll want to create a shell script (clear_prizm_cache.sh)
[service command to shutdown prizmdoc server]
rm -fr path_to_prizmdoc/cache/*
[service command to start prizmdoc server]
In this example, the cron job is set for every two hours in your crontab (normally in /etc/crontab): 
0 */2 * * *  /path/clear_prizm_cache.sh

For Windows, you'll set up a Windows Task:
net stop prizm
timeout 30
del D:\Prizm\Cache*.* /s /q
net start prizm

On the "del" line you can set the path for your specific server's log directory.
**You will definitely want to do this during off hours because the service is stopped to ensure the entire directory is cleared.



For Docker, you can set up a cron job that is a little more robust, in this case removing log files older than 720 min.



/config/prizmdoc is the docker volume presentation to /data


find /config/prizmdoc/data/cache/TempCache/Pccis0/ /config/prizmdoc/data/cache/TempCache/Pccis1/ /config/prizmdoc/data/cache/TempCache/Pccis2/ -type d -mmin +720 -exec rm -frv {} \; find /config/prizmdoc/data/cache/GroupState/Pccis0/ /config/prizmdoc/data/cache/GroupState/Pccis1/ /config/prizmdoc/data/cache/GroupState/Pccis2/ -type d -mmin +720 -exec rm -frv {} \; find /config/prizmdoc/data/cache/workfileCache/ -type d -mmin +720  -exec rm -frv {} \; find /config/prizmdoc/data/cache/document-conversion-service/ -type d -mmin +720 -exec rm -frv {} \;