Skip To Content

Delete Services

Description

This operation deletes the desired services on all reachable server machines in the cluster. This operation requires three properties: folder name, service name, and service type. When a service is deleted, the service is stopped, and all resources and configurations associated with the service are deleted.

Note:

Clusters have been deprecated. The use of clusters for new deployments is strongly discouraged and existing deployments are advised to migrate away from use of clusters as part of ongoing maintenance and upgrades.

Request parameters

ParameterDetails
services

The folder name, service name, and type of service being started in JSON format. See the service properties table below.

f

The response format. The default response format is html

Values: html|json |pjson

Service properties

PropertyDetails
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": "SampleWorldCities"
type

The service type.

Example

"type": "MapServer"

Example usage

Below is a sample POST request for deleteServices, formatted for readability:


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

{
services=[{
  "folderName": "",
  "serviceName": "SampleWorldCities",
  "type": "MapServer"
},
{
  "folderName": "Planning",
  "serviceName": "FireHydrants",
  "type": "FeatureServer"
}]}&f=json

JSON Response example

{"status": "success"}