Skip To Content

esri_portal_remove (AutoLISP)

The esri_portal_remove function removes the specified portal connection.

Syntax

(esri_portal_remove portalName)

Arguments

The following argument is included:

  • portalName | string | required | An ArcGIS Online or ArcGIS Enterprise organization name. Use (esri_portal_names) to find a list of valid names.

Note:

The portal name is first accessed by the default portal name "ArcGIS Online" or "ArcGIS Enterprise". Once you're signed in, the portal name may be the organizational name set by your administrator. You can review the names using (esri_portal_names) after signing in.

Example usage

Remove the specified portal.

(esri_portal_remove "ArcGIS Enterprise 11.4")

Result example usage

Removes the portal and returns a list of true.

(T)

Return values

The following are the possible return values:

  • If successful, the function returns a list of true: (T).
  • If failed, it returns a list with the first value of nil and an associated list containing the key value "Error" and an associated error message as a string: (nil ( "Error" . "<message>")).

Failed return values

A failed return value can occur for the following reason:

  • (nil ("Error" . "Missing required argument."))

    The required argument was not supplied.

See also

(esri_portal_add)—An AutoLISP function that adds the specified portal to the list of managed portals.

(esri_portal_names)—An AutoLISP function that gets a list of portal names as strings from managed portals.