You can call this operation to release a pay-as-you-go Elasticsearch instance. After the instance is released, the physical resources of the instance is reclaimed. The data of the instance is deleted and cannot be recovered. The disks mounted to the instance nodes and the snapshots are released.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request header

This operation uses common request parameters only. For more information, see Common parameters.

Request syntax

DELETE /openapi/instances/[InstanceId] HTTPS|HTTP

Request parameters

Parameter Type Required Example Description
InstanceId String Required es-cn-t57p81n7ai89v****

The ID of the instance.

clientToken String No 5A2CFF0E-5718-45B5-9D4D-70B3FF****

A unique token generated by the client to guarantee the idempotency of the request. You can use the client to generate the value, but you must ensure that it is unique among different requests. The token can only contain ASCII characters and cannot exceed 64 characters in length.

Response parameters

Parameter Type Example Description
RequestId String 94B03BBA-A132-42C3-8367-0A0C1C45****

The ID of the request.

The returned data also includes the Result parameter. For more information, see ListInstance.


Sample requests

DELETE /openapi/instances/es-cn-t57p81n7ai89v**** HTTP/1.1
Common request header

Sample success responses

JSON format

    "Result": {
        "instanceId": "es-cn-t57p81n7ai89v****",
        "version": "6.7.0_with_X-Pack",
        "description": "aliyunes_name_test",
        "nodeAmount": 3,
        "paymentType": "postpaid",
        "status": "active",
        "privateNetworkIpWhiteList": [
        "enablePublic": false,
        "nodeSpec": {
            "spec": "elasticsearch.sn2ne.xlarge",
            "disk": 20,
            "diskType": "cloud_ssd"
        "networkConfig": {
            "vpcId": "vpc-bp16k1dvzxtmagcva****",
            "vswitchId": "vsw-bp1k4ec6s7sjdbudw****",
            "vsArea": "cn-hangzhou-i",
            "type": "vpc"
        "createdAt": "2020-07-06T07:00:33.090Z",
        "updatedAt": "2020-07-06T09:51:08.635Z",
        "commodityCode": "elasticsearch",
        "extendConfigs": [
                "configType": "usageScenario",
                "value": "general"
                "configType": "maintainTime",
                "maintainStartTime": "02:00Z",
                "maintainEndTime": "06:00Z"
                "configType": "aliVersion",
                "aliVersion": "ali1.2.0"
        "endTime": 4749724800000,
        "clusterTasks": [],
        "vpcInstanceId": "es-cn-t57p81n7ai89v****-worker",
        "resourceGroupId": "rg-acfm2h5vbzd****",
        "zoneCount": 1,
        "protocol": "HTTP",
        "zoneInfos": [
                "zoneId": "cn-hangzhou-i",
                "status": "NORMAL"
        "instanceType": "elasticsearch",
        "inited": true,
        "tags": [],
        "domain": "es-cn-t57p81n7ai89v****",
        "port": 9200,
        "esVersion": "6.7.0_with_X-Pack",
        "esConfig": {
            "action.destructive_requires_name": "true",
            "": "index",
            "xpack.watcher.enabled": "false",
            "": "false",
            "action.auto_create_index": "+.*,-*"
        "esIPWhitelist": [
        "esIPBlacklist": [],
        "kibanaIPWhitelist": [
        "kibanaPrivateIPWhitelist": [],
        "publicIpWhitelist": [],
        "kibanaDomain": "es-cn-t57p81n7ai89v****",
        "kibanaPort": 5601,
        "haveKibana": true,
        "instanceCategory": "x-pack",
        "dedicateMaster": false,
        "advancedDedicateMaster": false,
        "masterConfiguration": {},
        "haveClientNode": false,
        "warmNode": false,
        "warmNodeConfiguration": {},
        "clientNodeConfiguration": {},
        "kibanaConfiguration": {
            "spec": "elasticsearch.n4.small",
            "amount": 1,
            "disk": 0
        "dictList": [
                "name": "SYSTEM_MAIN.dic",
                "fileSize": 2782602,
                "sourceType": "ORIGIN",
                "type": "MAIN"
                "name": "SYSTEM_STOPWORD.dic",
                "fileSize": 132,
                "sourceType": "ORIGIN",
                "type": "STOP"
        "synonymsDicts": [],
        "ikHotDicts": [],
        "aliwsDicts": [],
        "haveGrafana": false,
        "haveCerebro": false,
        "enableKibanaPublicNetwork": true,
        "enableKibanaPrivateNetwork": false,
        "advancedSetting": {
            "gcName": "CMS"
    "RequestId": "CC95EF0A-12FD-4BCA-AF76-F34B04BA****"

Error codes

For a list of error codes, visit the API Error Center.