As part of T184485: Stop logging autopatrol actions, we need a maintenance script to remove all autopatrol actions from the logging table – including all patrol actions prior to April 2016 (before that, manual and automatic patrolling weren’t distinguished).
Since that “April 2016” depends on when code was deployed to an installation, that shouldn’t be hard-coded :) instead, there should be flags to control the time range when to remove autopatrol actions, and another flag to control whether all patrols or only autopatrols are removed.