

def delete(self):
    with self.backend.transaction(implicit=True):
        s = self.get_bare_select(columns=[self.table.c.pk])
        delete_stmt = self.table.delete().where(self.table.c.pk.in_(self))
        self.backend.connection.execute(delete_stmt)

dataset/ETHPy150Open adewes/blitzdb/blitzdb/backends/sql/queryset.py QuerySet.delete/VarMisuse@65/73 `s`->`self`