Skip To Content

esri_webfeaturelayer_deleteBranch (AutoLISP)

This function deletes a branch version from the specified web feature layer..

Syntax

(esri_webfeaturelayer_deleteBranch flname branchName)

Arguments

  • flname | string | required | An existing web feature layer name in the drawing.
  • branchName | string | required | A branch version name associated with the flname web feature layer.

Example usage

Attempts to remove the existing branch version name from the web feature layer in the drawing.

(esri_webfeaturelayer_deleteBranch "landowners" "editor01.phase1")

Result example usage

The existing branch version name is removed and the function returns a list that contains the value of true (T).

(T)

Return values

  • If successful, the existing branch version name is removed and the function returns a list that contains true (T).

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

A failed return value can occur for any of the following reasons:

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

    One of the two required arguments is not supplied.

  • (nil ("Error" . "Web feature layer not found."))

    The web feature layer name specified is not a valid web feature layer in the drawing.

  • (nil ("Error" . "No connected web feature layers found."))

    The network connection to the web feature layer was lost.

  • (nil ("Error" . "Layer does not support branch versions"))

    The specified web feature layer does not support branch versions.

  • ( nil ("Error" . "Cannot delete the current branch version."))

    The branch version name being deleted is currently in use by the web feature layer.

  • ( nil ("Error" . "Failed."))

    The specified branch version name does not exist.

See Also

(esri_webfeaturelayer_branchInfo) - Gets the web feature layer branch version information for the specified web feature layer as an associated list.

(esri_webfeaturelayer_createBranch) - Creates a branch version for the specified web feature layer.

(esri_webfeaturelayer_branchNames) - Retrieves a list of branch version names from the server.

(esri_webfeaturelayer_changeBranch) - Changes the branch version for the specified web feature layer.