def delete(self):
        self.pre_delete and self.pre_delete()
        pk = self.__primary_key__.name
        args = (getattr(self, pk), )
        _update('delete from %s where %s=?' % (self.__table__, pk), args)
        return self
dataset/ETHPy150Open michaelliao/transwarp/transwarp/db.py/Model.delete/original