def delete_network(context, net_id):
 session = context.session
 with session.begin(subtransactions=True):
  net = session.query(BrocadeNetwork).filter_by(id=net_id).first()
  if (net is not None):
   session.delete(net)

def delete_network ( context , net_id ) : session = context . session with session . begin ( subtransactions = True ) : net = session . query ( BrocadeNetwork ) . filter_by ( id = net_id ) . first ( ) if ( net is not None ) : session . delete ( net )
permanently delete a network .