Add "deletejob" to OnAllTasksComplete event
I often encounter the scenario that by the time a job completes I already gathered all job output and don't need to inspect the Batch job anymore. Still, I need to have some code somewhere that then finally deletes the job so that I don't accumulate jobs possibly hitting some quota at some point. For simple workflows it would be great if this step could be removed by adding a "deletejob" option to the OnAllTasksComplete event.
terminateJob is sufficient for moving the job from its source state to Completed. Completed jobs do not count towards active job/job schedule quota.
That being said, deleteJob is something that could be useful for certain scenarios and, in particular, node hygiene for cases where task constraint retention time doesn't make sense.