Destroys an ApsaraDB for MongoDB instance.

Before you call this API operation, make sure that the ApsaraDB for MongoDB instance meets the following requirements:

  • The billing method of the instance is subscription.
  • The instance has expired and is in the Locking state.

Debugging

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 parameters

Parameter Type Required Example Description
Action String Yes DestroyInstance

The operation that you want to perform. Set the value to DestroyInstance.

RegionId String No cn-hangzhou

The region ID of the instance. You can call the DescribeRegions operation to query the most recent region list.

InstanceId String No dds-bp147acd4783****

The ID of the instance.

Note InstanceId and DBInstanceId serve the same function. You need only to specify one of them.
DBInstanceId String No dds-bp147acd4783****

The ID of the instance.

Note InstanceId and DBInstanceId serve the same function. You need only to specify one of them.
ClientToken String No ETnLKlblzczshOTUbOCz****

The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must make sure that it is unique among different requests. The token can only contain ASCII characters and cannot exceed 64 characters in length.

ResourceGroupId String No rg-acfmyiu4ekp****

The ID of the resource group.

Response parameters

Parameter Type Example Description
RequestId String 65BDA532-28AF-4122-AA39-B382721E****

The ID of the request.

Examples

Sample requests

http(s)://mongodb.aliyuncs.com/?Action=DestroyInstance
&DBInstanceId=dds-bp147acd4783****
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DestroyInstanceResponse>
    <RequestId> 65BDA532-28AF-4122-AA39-B382721E****</RequestId>
</DestroyInstanceResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : " 65BDA532-28AF-4122-AA39-B382721E****"
}

Error codes

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