Deletes a Message Queue for Apache RocketMQ instance.

Usage notes

You can call this operation when resources are recycled, for example, when applications are deprecated.

An instance can be deleted only when no topics and group IDs exist in the instance.

Note After an instance is deleted, it cannot be restored. Exercise caution when you call this operation.

QPS limit

The queries-per-second (QPS) limit on this operation is 10 per user. Throttling is triggered when the number of calls to this operation per second exceeds the QPS limit. Throttling may affect your business. Therefore, call this operation based on your needs. For more information, see QPS limits.

Authorization information

By default, only Alibaba Cloud accounts can call this operation. RAM users can call this operation only after they are authorized to use it. The following table lists the authorization information of this operation. For more information, see Policies and examples.

API

Action

Resource

OnsInstanceDelete

mq:DeleteInstance

acs:mq:*:*:{instanceId}

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 OnsInstanceDelete

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

InstanceId String Yes MQ_INST_188077086902****_BXSuW61e

The ID of the instance.

Response parameters

Parameter Type Example Description
RequestId String A07E3902-B92E-44A6-B6C5-6AA111111****

The ID of the request, which is a common parameter. Each request has a unique ID to facilitate troubleshooting and fault locating.

Examples

Sample requests

http(s)://ons.cn-hangzhou.aliyuncs.com/? Action=OnsInstanceDelete
&InstanceId=MQ_INST_188077086902****_BXSuW61e
&<Common request parameters>

Sample success responses

XML format

<OnsInstanceDeleteResponse>
  <RequestId>A07E3902-B92E-44A6-B6C5-6AA111111****</RequestId>
</OnsInstanceDeleteResponse>

JSON format

{
    "RequestId":"A07E3902-B92E-44A6-B6C5-6AA111111****"
}

Error codes

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

Operations in the console

In addition to calling the OnsInstanceDelete operation, you can delete an instance in the Message Queue for Apache RocketMQ console. For more information, see Manage instances.