ReceiptHandle
obtained after the last consumption as a parameter to locate the message to be deleted.NextVisibleTime
. After NextVisibleTime
elapses, the message will return to the Active
status, and ReceiptHandle
will become invalid, making it impossible to delete the message. In this case, the message needs to be consumed again to get a new ReceiptHandle
. When a message is consumed by multiple consumers concurrently, if the message is deleted by one of the consumers, other consumers can no longer get it.https://cmq-gz.publicXXX.tencenttdmq.com
http://gz.mqadapter.cmq.tencentyun.com
Parameter | Required | Type | Description |
queueName | Yes | String | Queue name, which is unique under the same account in an individual region. It is a string of up to 64 characters, which must begin with a letter and can contain letters, digits, and dashes ( - ). |
receiptHandle | Yes | String | The unique message handler returned from the last consumption, which is used to delete the message. |
Parameter | Type | Description |
code | Int | |
message | String | Error message. |
requestId | String | Request ID generated by the server, which can be submitted to the backend for troubleshooting when an internal server error occurs. |
https://domain/v2/index.php?Action=DeleteMessage &queueName=test-queue-123 &receiptHandle=3423452345 &<<a href="">Common request parameters</a>>
{"code" : 0,"message" : "","requestId":"14534664555"}
Was this page helpful?