'Remove a finished (completed or dead) job.'

def remove(self, num):

    try:
        job = self.all[num]
    except KeyError:
        error(('Job    #%s    not    found' % num))
    else:
        stat_code = job.stat_code
        if (stat_code == self._s_running):
            error(('Job    #%s    is    still    running,    it    can    not    be    removed.' % num))
            return
        elif (stat_code == self._s_completed):
            self.completed.remove(job)
        elif (stat_code == self._s_dead):
            self.dead.remove(job)
