You can call this operation to release an RDS instance.

When you perform this operation, the instance must meet the following requirements:

  • The instance is in the running state.
  • The read/write splitting function is disabled for the instance.
  • The instance is a Pay-As-You-Go master instance, read-only instance, disaster recovery instance, or temporary instance.

Debugging

You can use OpenAPI Explorer to perform debugging.

OpenAPI Explorer provides various functions to simplify API usage. For example, you can retrieve APIs, call APIs, and generate SDK sample code.

Request parameters

Parameter Type Required Example Description
Action String Yes DeleteDBInstance

The operation that you want to perform. Set this parameter to DeleteDBInstance.

DBInstanceId String Yes rm-uf6wjk5xxxxxxxxxx

The ID of the instance.

AccessKeyId String No LTAIfCxxxxxxxxxx

The AccessKey ID issued by Alibaba Cloud for users to access services.

Response parameters

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

The ID of the request.

Examples

Request example


http(s)://rds.aliyuncs.com/?Action=DeleteDBInstance
&DBInstanceId=rm-uf6wjk5xxxxxxxxxx
&<Common request parameters>

Normal response examples

XML format

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

JSON format

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

Error codes

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