You will need to replace pathToLogsFiles with the actual path to the log files. Example: C:\Users\MartinZaelgel\lisatmp_9.5.1

Here are the two most common ways to automate the script (use only once method):

1. If the machine is restarted often - simply drop the script into the Windows startup folder: Usually located here but the location may change depending on your setup: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup

2. Use the Windows "Task Scheduler" to run the script on a regular interval like one a week/month.

***Unix*** Create a script file with a name similar to DeleteDevTestLogs.sh, with the following three lines: