def servicegroup_server_delete(sg_name, s_name, s_port, **connection_args):
 ret = True
 server = _servicegroup_get_server(sg_name, s_name, s_port, **connection_args)
 if (server is None):
  return False
 nitro = _connect(**connection_args)
 if (nitro is None):
  return False
 sgsb = NSServiceGroupServerBinding()
 sgsb.set_servicegroupname(sg_name)
 sgsb.set_servername(s_name)
 sgsb.set_port(s_port)
 try:
  NSServiceGroupServerBinding.delete(nitro, sgsb)
 except NSNitroError as error:
  log.debug('netscaler module error - NSServiceGroupServerBinding() failed: {0}'.format(error))
  ret = False
 _disconnect(nitro)
 return ret

def servicegroup_server_delete ( sg_name , s_name , s_port , ** connection_args ) : ret = True server = _servicegroup_get_server ( sg_name , s_name , s_port , ** connection_args ) if ( server is None ) : return False nitro = _connect ( ** connection_args ) if ( nitro is None ) : return False sgsb = NSServiceGroupServerBinding ( ) sgsb . set_servicegroupname ( sg_name ) sgsb . set_servername ( s_name ) sgsb . set_port ( s_port ) try : NSServiceGroupServerBinding . delete ( nitro , sgsb ) except NSNitroError as error : log . debug ( 'netscaler module error - NSServiceGroupServerBinding() failed: {0}' . format ( error ) ) ret = False _disconnect ( nitro ) return ret
remove a server:port member from a servicegroup cli example: .