def delete(self):

        db = current.db

        _debug("Deleting job ID=%s", self.job_id)

        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()

    # -------------------------------------------------------------------------
Delete this job and all its items from the job table
dataset/ETHPy150Open sahana/eden/modules/s3/s3import.py/S3ImportJob.delete