job deleted function