def remove_qos(tenant_id, qos_id):
 session = db.get_session()
 try:
  qos = session.query(l2network_models.QoS).filter_by(tenant_id=tenant_id).filter_by(qos_id=qos_id).one()
  session.delete(qos)
  session.flush()
  return qos
 except exc.NoResultFound:
  pass

def remove_qos ( tenant_id , qos_id ) : session = db . get_session ( ) try : qos = session . query ( l2network_models . QoS ) . filter_by ( tenant_id = tenant_id ) . filter_by ( qos_id = qos_id ) . one ( ) session . delete ( qos ) session . flush ( ) return qos except exc . NoResultFound : pass
removes a qos to tenant association .