Delete Version

URL:
https://<LinearReferencingService-url>/deleteVersion
Methods:
GET
Required Capability:
The ArcGIS Location Referencing license is required to use this resource.
Version Introduced:
10.6

Description

Delete a version from an enterprise geodatabase.

Version names are case sensitive and should take the form {'{'}owner{'}'}.{'{'}version{'}'}, for example, sde.DEFAULT.

Request parameters

ParameterDetails

f

(Optional)

Specifies the response format. The default response format is html.

Values: html | json | pjson

name

(Required)

The name of the version to delete.

lrsId

A unique ID that identifies an LRS workspace. Refer to the LRS service resource for a list of LRS workspaces and their IDs.

If there is only one LRS workspace referenced by the map service, that LRS is used by default. Otherwise, the lrsId parameter is required.

Example usage

Example 1

The following is the URL for deleting version data_owner.job_42 in the default LRS workspace:

Use dark colors for code blocksCopy
1
https://sampleserver/arcgis/rest/services/MyLRS/MapServer/exts/LRServer/deleteVersion?f=json&name=data_owner.job_42

Example 2

The following is the URL for deleting version data_owner.job_42 in the LRS workspace 387ad279-6026-4680-8171-fd17d1b9efd4:

Use dark colors for code blocksCopy
1
https://sampleserver/arcgis/rest/services/MyLRS/MapServer/exts/LRServer/deleteVersion?f=json&name=data_owner.job_42&lrsId=387ad279-6026-4680-8171-fd17d1b9efd4

JSON Response syntax

Use dark colors for code blocksCopy
1
2
3
{
  "success": true
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.