Mi Galaxy EMQ Book

deleteMessage()


Delete successfully processed Message
from Queue After the received Message is successfully processed, it should be promptly removed from the Queue

parameter DeleteMessageRequest

queueName : String : required
receiptHandle : String : required

The receipHandle of the Message that must be deleted

return void

deleteMessageBatch()


Batch delete successfully processed Messages
from Queue This operation is not atomic. Some messages may be successfully deleted and some may fail.

parameter DeleteMessageBatchRequest

queueName : String : required
deleteMessageBatchRequestEntryList : List< DeleteMessageBatchRequestEntry > : required

List of Messages that must be deleted
DeleteMessageBatchRequestEntry fields include:

  1. receiptHandle : String : required

return DeleteMessageBatchResponse

successful : List< String >

Successful Message receiptHandle list

failed : List< MessageBatchErrorEntry >

The failed Message receiptHandle List and corresponding Exception.
The specific content of the MessageBatchErrorEntry type can be found in sendMessageBatch()