def delete(self, query, params=None):
        cursor = self.conn.cursor()
        try:
            if params:
                cursor.execute("delete " + query, params)
            else:
                cursor.execute("delete " + query)
        except Exception, e:
            self.conn.rollback()
            raise Exception(str(e) + '\n%s\n%s' % (query, repr(params)))
        else:
            self.conn.commit()
            return cursor.rowcount
Delete rows from a table.
dataset/ETHPy150Open shinymud/ShinyMUD/src/shinymud/lib/db.py/DB.delete