def server_delete(s_name, **connection_args):
 ret = True
 server = _server_get(s_name, **connection_args)
 if (server is None):
  return False
 nitro = _connect(**connection_args)
 if (nitro is None):
  return False
 try:
  NSServer.delete(nitro, server)
 except NSNitroError as error:
  log.debug('netscaler module error - NSServer.delete() failed: {0}'.format(error))
  ret = False
 _disconnect(nitro)
 return ret

def server_delete ( s_name , ** connection_args ) : ret = True server = _server_get ( s_name , ** connection_args ) if ( server is None ) : return False nitro = _connect ( ** connection_args ) if ( nitro is None ) : return False try : NSServer . delete ( nitro , server ) except NSNitroError as error : log . debug ( 'netscaler module error - NSServer.delete() failed: {0}' . format ( error ) ) ret = False _disconnect ( nitro ) return ret
delete a server cli example: .