Deletes a pay-as-you-go PolarDB cluster.

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 DeleteDBCluster

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

DBClusterId String Yes pc-**************

The ID of the cluster.

BackupRetentionPolicyOnClusterDeletion String No NONE

The retention policy for the backup sets when you delete the cluster. Valid values:

  • ALL: permanently retains all the backups.
  • LATEST: permanently retains the last backup. A backup is automatically created before you delete the cluster.
  • NONE: retains no backup sets when you delete the cluster.

Response parameters

Parameter Type Example Description
RequestId String D0CEC6AC-7760-409A-A0D5-E6CD86******

The ID of the request.

Examples

Sample requests

http(s)://polardb.aliyuncs.com/? Action=DeleteDBCluster
&DBClusterId=pc-**************
&<Common request parameters>

Sample success responses

XML format

<DeleteDBClusterResponse>
  <RequestId>D0CEC6AC-7760-409A-A0D5-E6CD86******</RequestId>
</DeleteDBClusterResponse>

JSON format

{
  "RequestId": "D0CEC6AC-7760-409A-A0D5-E6CD86******"
}

Error codes

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