Delete all dependent jobs on deleting a job

`id` needs to be renamed, it overlaps with a builtin function