change delete_jobs interface for easier testing