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.







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.


Sample requests

http(s):// Action=OnsInstanceDelete
&<Common request parameters>

Sample success responses

XML format


JSON format


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.