We might want to check for job state before erasing. Not sure if we want to allow erasing of running/error/non-complete jobs?