def delete(self): db_sql.session.delete(self) db_sql.session.flush() db0.delete(ConstDB.app + hexlify(self.app_eui).decode()) db_sql.session.commit()
def delete_mac_info(self): db0.delete(ConstDB.dev_info + hexlify(self.dev_eui).decode())
def clear(self): return db0.delete(ConstDB.que_down + self.key)