- URL:
- https://<root>/<serviceName>/TopographicProductionServer/jobs/delete
- Methods:
GET
- Required Capability:
- Requires an ArcGIS GIS Server Advanced license and a Production Mapping or Defense Mapping server extension license
- Version Introduced:
- 11.0
Description
This operation removes jobs that have been completed or were canceled so that they no longer appear in queries or occupy server space.
Request parameters
Parameter | Details |
---|---|
(Required) | The unique job identifier to add to the query URL, for example, |
(Required) |
Specifies the response format. Values: |
Response properties
The following details are for the properties of a response:
Property | Details |
---|---|
| Indicates whether the operation was successful. Values: |
JSON Response syntax
The following is the syntax of a response:
{
"count": <the total amount of jobs to delete>,
"results": [<array of JSON objects that represents submitted jobs>
{
"id": "<job ID>",
"success": <true | false>,
"message": "<informational or error messages>"
}
],
"success": <true | false>
}
Example usage
Delete a job using the job
REST operation.
Request URL and parameters:
https://machine.domain.com/server/rest/services/MTM50/TopographicProductionServer/jobs/delete
jobId=1EC280F6-2D86-4B71-9C3F-4A2BF5B153D2
f=json
JSON Response example
The following response is an example of a successful deletion of one job:
{
"count": 1,
"results": [
{
"id": "1EC280F6-2D86-4B71-9C3F-4A2BF5B153D2",
"success": true,
"message": "Job deleted"
}
],
"success": true
}
Example usage
Delete multiple jobs using the job
REST operation.
Request URL and parameters:
https://machine.domain.com/server/rest/services/MTM50/TopographicProductionServer/jobs/delete
jobId=[
"1EC280F6-2D86-4B71-9C3F-4A2BF5B153D2",
"4A2BF5B1-2D86-4B71-2D86-1EC280F653D2",
"F5B153D2-9C3F-4B71-9C3F-4A2B1EC280F6"
]
f=json
JSON Response example
The following example is a successful response to the delete
REST operation when deleting multiple jobs:
{
"count": 3,
"results": [
{
"id": "1EC280F6-2D86-4B71-9C3F-4A2BF5B153D2",
"success": true,
"message": "Job deleted"
},
{
"id": "4A2BF5B1-2D86-4B71-2D86-1EC280F653D2",
"success": true,
"message": "Job deleted"
},
{
"id": "F5B153D2-9C3F-4B71-9C3F-4A2B1EC280F6",
"success": true,
"message": "Job deleted"
}
],
"success": true
}