Releases a pay-as-you-go AnalyticDB for PostgreSQL instance.

Description

  • Subscription instances cannot be manually released. They are automatically released when they expire.
  • You can call this operation to release pay-as-you-go instances only when they are in the Running state.

Limit

You can call this operation up to 1,000 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered and may affect your business. We recommend that you take note of the limit when you call this operation.

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 DeleteDBInstance

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

ClientToken String No 0c593ea1-3bea-11e9-b96b-88**********

The client token that is used to ensure the idempotence of the request. For more information, see How to ensure idempotence.

DBInstanceId String Yes gp-bp***************

The ID of the instance.

Note You can call the DescribeDBInstances operation to query the details of all AnalyticDB for PostgreSQL instances in a specific region, including instance IDs.

Response parameters

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

The ID of the request.

Examples

Sample requests

https://gpdb.aliyuncs.com/?Action=DeleteDBInstance
&DBInstanceId=gp-bp***************
&<Common request parameters>

Sample success responses

XML format

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

<DeleteDBInstanceResponse>
    <RequestId>65BDA532-28AF-4122-AA39-B3**********</RequestId>
</DeleteDBInstanceResponse>

JSON format

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

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

Error codes

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