Skip To Content
ArcGIS Developers
Dashboard

Delete Services

Description

This operation deletes the desired services from the ArcGIS Enterprise on Kubernetes deployment. This operation requires three properties: folder name, service name, and service type. When a service is deleted, the service is stopped, and all pods and microservices associated with the service are deleted.

Request parameters

ParameterDetails
services

A comma-separated list of services, represented as a JSON object containing the folder name, service name, and type of service. For information on the service property types, see the Service properties section below.

Example

services={
  "folderName": "",
  "serviceName": "SampleWorldCities",
  "type": "MapServer"
},
{
  "folderName": "Planning",
  "serviceName": "FireHydrants",
  "type": "FeatureServer"
}
async

Indicates whether to process the operation in synchronous or asynchronous mode. The default value is false. When set to true, the operation will return a status URL that can be used as a request to retrieve the job status for the operation.

Values: true | false

Service properties

ParameterDetails
folderName

The name of the folder containing the service. If the service resides in the root folder, leave the folder property blank ("folderName": "").

Example

//Root folder
"folderName": ""

//Specific folder
"folderName": "Planning"
serviceName

The name of the service.

Example

"serviceName": "FireHydrants"
type

The service type.

Example

"type": "MapServer"

Example usage

The following is a sample POST request for the deleteServices operation, formatted for readability:

POST /context/admin/services/deleteServices HTTP/1.1
Host: organization.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []

services={
  "folderName": "",
  "serviceName": "SampleWorldCities",
  "type": "MapServer"
},
{
  "folderName": "Planning",
  "serviceName": "FireHydrants",
  "type": "FeatureServer"
}&async=false&token=ZgttNXW27AaT6bUAz7GpI_9pSaOgYdoOSbr_lBFtmNPdva513X7i_C3VPlVoTMlrfFjj-UPpITLbFBaeczh20XVHxv3n4Kr9ZfUTdJc1lG913JoyNsAzWK9eoTi31NFIOzzFkshS2wLRqRXmPob48zCP7yXtQIAQl6PR4q1P1UvdM2en5ag3tF4juCewecAW7GiJaw5Vza0W7vHUffDddnbFQGHqNMfoFx1-BDBZPxsPOamPNF8TurlCJVZpabBj

JSON Response example

{"status": "success"}