def vserver_servicegroup_delete(v_name, sg_name, **connection_args):
 ret = True
 if (not vserver_servicegroup_exists(v_name, sg_name, **connection_args)):
  return False
 nitro = _connect(**connection_args)
 if (nitro is None):
  return False
 vsg = NSLBVServerServiceGroupBinding()
 vsg.set_name(v_name)
 vsg.set_servicegroupname(sg_name)
 try:
  NSLBVServerServiceGroupBinding.delete(nitro, vsg)
 except NSNitroError as error:
  log.debug('netscaler module error - NSLBVServerServiceGroupBinding.delete() failed: {0}'.format(error))
  ret = False
 _disconnect(nitro)
 return ret

def vserver_servicegroup_delete ( v_name , sg_name , ** connection_args ) : ret = True if ( not vserver_servicegroup_exists ( v_name , sg_name , ** connection_args ) ) : return False nitro = _connect ( ** connection_args ) if ( nitro is None ) : return False vsg = NSLBVServerServiceGroupBinding ( ) vsg . set_name ( v_name ) vsg . set_servicegroupname ( sg_name ) try : NSLBVServerServiceGroupBinding . delete ( nitro , vsg ) except NSNitroError as error : log . debug ( 'netscaler module error - NSLBVServerServiceGroupBinding.delete() failed: {0}' . format ( error ) ) ret = False _disconnect ( nitro ) return ret
unbind a servicegroup from a vserver cli example: .