This is a PowerShell script which will move (or delete) older logs from the Qlik Sense default logging directories. This is useful as a tool to cleanup old logs if there are no requirements to keep them.
The valid configurable parameters are:
$days - Age threshold. The default value of 60 will move / erase all logs older than 60 days old
$option1 - This will move the files (see the robocopy flags for more configurable options)
$option2 - This will move the files in all sub-directories (see the robocopy flags for more configurable options)
$source - This is the path where you want to copy from. The default value is the Archived Logs folder, which is typically the place where old logs go.
$dest - The place where the logs will be moved to
$removelogs - N(o) then the logs will be kept in the $dest path or Y(es) then the logs will be deleted from the $dest path
This tool is provided free of charge and is not supported. Qlik Sense Log Archiver / Eraser is not an official Qlik Sense product and is provided without warranty. Use of this script is entirely at the user's own risk.