The command perl /usr/share/koha/bin/cronjobs/cleanup_database.pl --confirm --jobs-days 7 --jobs-type all <instance> and several variations (e.g. only jobs-days or jobs-type parameter) does not purge any old jobs. What may be the reason? The solution in https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30914 was to fix 'delete if $verbose' and set 'delete if $confirm' instead, but I couldn't find the same mistake here. The cleanup seems to fail also when the job runs as a cronjob in koha-common.