You can call this operation to delete a Message Queue for Apache RocketMQ instance.

Note the following when calling this operation:

  • By default, only Alibaba Cloud accounts can call this operation. Resource Access Management (RAM) users can call this operation only after being authorized.
  • A Message Queue for Apache RocketMQ instance can be deleted only when the Topic and GroupId parameters are empty.

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_111111111111_DOxxxxxx

The ID of the Message Queue for Apache RocketMQ instance that you want to delete.

Response parameters

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

The ID of the request. This is a common parameter that facilitates troubleshooting and fault locating.

Examples

Sample requests

http(s)://[Endpoint]/? Action=OnsInstanceDelete
&InstanceId=MQ_INST_111111111111_DOxxxxxx
&<Common request parameters>

Sample success responses

XML format

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

JSON format

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

Error codes

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