(#11383) support purging of all cronjobs

This won't work without without rebasing it on the #3220 fix. Let's just merge that one first. I didn't base this branch on the other one because the #3220 fix includes some additional fixups for its test that would make it difficult to easily review the essence of this one.