- URL:https://<versionmanagementservice-url>/delete(POST only)
 - Version Introduced:10.6
 
Description
Delete the specified named version. The deletion will fail if the version is in use or the connected user is not the owner.
License:
Organization members must be assigned a license for the ArcGIS Advanced Editing user type extension to use this operation.Request parameters
| Parameter | Details | 
|---|---|
| f | Description: Optional parameter to specify the output format of the response. The default response format is html. Values: html | json  | 
| versionName | Description: The name of the version to be deleted. Syntax: versionName = <versionName> To delete a version owned by another user as the version administrator, the versionName must be qualified with the owner. For example, versionName=portaluser.carolina.  | 
| sessionId | Description: The client-generated session ID (GUID). The session ID is often passed as a logical lock token for the version being edited. Syntax: sessionId = {3F2504E0-4F89-41D3-9A0C-0305E82C3301}  | 
JSON Response syntax
{
  "success" : <true | false>,
  "error" : { // only if success is false
    "extendedCode" : <HRESULT>,
    "message" : <error message>,
    "details" : [ <detail> ]
  }
}
Example usage
Delete a named version using the delete operation.
Request URL and parameters:
https://myserver.esri.com/server/rest/services/LandUse/VersionManagementServer/delete
f=json
versionName=portaluser.carolinaJSON response:
{
 "success": true
}