- URL:
- https://<adminRoot>/services/<serviceName>/FeatureServer/deleteFromDefinition
- Methods:
GET
Description
The delete operation supports deleting a definition property from a hosted feature service. The result of this operation is a response indicating success or failure with error code and description.
New at 11.4
This operation now supports performing asynchronous requests for ArcGIS Enterprise hosted feature services.
Request parameters
| Parameter | Details |
|---|---|
| The |
| Support options for asynchronous processing. The default format is Values: |
| The response format. The default response format is Values: |
Example usage
Below is a sample URL used to access the delete operation:
https://services.myserver.com/OrgID/ArcGIS/rest/admin/services/example1/FeatureServer/deleteFromDefinitionExample input for the delete parameter:
{
"layers": [
{
"id": "0"
},
{
"id": "1"
}
]
}JSON Response syntax
The example below reflects the syntax of a synchronous response:
{
"success": <true|false>,
"error": {
"code": <code>,
"message": "<description>",
"details": [
"<message>"
]
}
}The example below reflects the syntax of an asynchronous response:
{"statusURL": “<response status URL>”}JSON Response examples
Synchronous responses
When delete succeeds as a synchronous response:
{
"success": true
}When delete fails as a synchronous response:
{
"error": {
"code": 400,
"message": "",
"details": [
"Unable to update feature service layer definition."
]
}
}Asynchronous responses
When an delete request is submitted asynchronously, the response will include a status, the value of which is a URL that can be accessed to check the status of the request:
{
"statusURL": "https://machine.domain.com/ArcGIS/rest/admin/services/myhostedservice/FeatureServer/deleteFromDefinition/5f4f34c6-2bcf-41c7-8bd1-ea777570ad23"
}The URL can be used to periodically check the progress of the request, which is returned as the status property. When the job completes, the response retrieved from the status URL will indicate whether the request completed successfully.
//success
{
"submissionTime":1726444564500,
"lastUpdatedTime":1726444568893,
"status":"Completed"
}
//failure
{
"submissionTime": 1726520769240,
"lastUpdatedTime": 1726520769773,
"status": "Failed",
"error": {
"code": 500,
"description": "Editing definition error - RCPerfTestOneWayAllRowsParent.DBO.Volcano_Roop "
}
}