Deletes an AnalyticDB for MySQL 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 Yes DeleteDBCluster

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

DBClusterId String Yes am-bp1xxxxxxxx47

The ID of the cluster.

Response parameters

Parameter Type Example Description
TaskId Integer 421693038

The ID of the task.

RequestId String 1AD222E9-E606-4A42-BF6D-8A4442913CEF

The ID of the request.

DBClusterId String am-bp1xxxxxxxx47

The ID of the cluster.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DeleteDBCluster
&DBClusterId=am-bp1xxxxxxxx47
&<Common request parameters>

Sample success responses

XML format

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

<DeleteDBClusterResponse>
    <TaskId>421693038</TaskId>
    <RequestId>1AD222E9-E606-4A42-BF6D-8A4442913CEF</RequestId>
    <DBClusterId>am-bp1xxxxxxxx47</DBClusterId>
</DeleteDBClusterResponse>

JSON format

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

{
  "TaskId" : 421693038,
  "RequestId" : "1AD222E9-E606-4A42-BF6D-8A4442913CEF",
  "DBClusterId" : "am-bp1xxxxxxxx47"
}

Error codes

HTTP status code Error code Error message Description
404 InvalidDBCluster.NotFound The DBClusterId provided does not exist in our records. The error message returned because the specified DBClusterId parameter does not exist. Check whether the cluster ID is valid.

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