'Delete this job and all its items from the job table'

def delete(self):

    db = current.db
    self.__define_tables()
    item_table = self.item_table
    query = (item_table.job_id == self.job_id)
    db(query).delete()
    job_table = self.job_table
    query = (job_table.job_id == self.job_id)
    db(query).delete()
