Add an option to purge the system log to the maintenance module (see #4701)