def vserver_delete(v_name, **connection_args):
 ret = True
 vserver = _vserver_get(v_name, **connection_args)
 if (vserver is None):
  return False
 nitro = _connect(**connection_args)
 if (nitro is None):
  return False
 try:
  NSLBVServer.delete(nitro, vserver)
 except NSNitroError as error:
  log.debug('netscaler module error - NSVServer.delete() failed: {0}'.format(error))
  ret = False
 _disconnect(nitro)
 return ret

def vserver_delete ( v_name , ** connection_args ) : ret = True vserver = _vserver_get ( v_name , ** connection_args ) if ( vserver is None ) : return False nitro = _connect ( ** connection_args ) if ( nitro is None ) : return False try : NSLBVServer . delete ( nitro , vserver ) except NSNitroError as error : log . debug ( 'netscaler module error - NSVServer.delete() failed: {0}' . format ( error ) ) ret = False _disconnect ( nitro ) return ret
delete a lb vserver cli example: .