You can call this operation to release an ApsaraDB for MongoDB instance.

Ensure that the instance meets the following conditions when you call this operation:

  • The instance is in the running state.
  • The billing method of the instance is pay-as-you-go.
Note After an instance is released, all the data in the instance is lost and cannot be retrieved. Exercise caution when you release instances.

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 No DeleteDBInstance

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

DBInstanceId String Yes dds-bpxxxxxxxx

The ID of the instance.

ClientToken String No ETnLKlblzczshOTUbOCzxxxxxxxxxx

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 ensure that it is unique among different requests. The token can only contain ASCII characters and cannot exceed 64 characters in length.

RegionId String No cn-hangzhou

The ID of the region where the instance is deployed. You can call the DescribeRegions operation to query the region ID.

Response parameters

Parameter Type Example Description
RequestId String 72651AF9-7897-41A7-8B67-6C15C7F26A0A

The ID of the request.

Examples

Sample requests

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

Sample success responses

XML format

<DeleteDBInstanceResponse>
      <RequestId>72651AF9-7897-41A7-8B67-6C15C7F26A0A</RequestId>
</DeleteDBInstanceResponse>

JSON format

{
    "RequestId": "72651AF9-7897-41A7-8B67-6C15C7F26A0A"
}

Error codes

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