Mi Galaxy EMQ Book

For Messages that have never been received, you can directly call these two interfaces to delete the Messages. Unlike deleteMessage, this deletion does not require the prior reception of the Message, and will directly delete the storage of the Message in the bottom layer of the EMQ, and the follow-up will no longer be able to consume the Message in any way.

deletePeekMessage()


parameter DeletePeekMessageRequest

queueName : String : required
receiptHandle : String : required

The Message ID obtained after the Message is sent successfully. Only Messages that have never been received can be deleted.

no return

deletePeekMessageBatch()


parameter DeletePeekMessageBatchRequest

queueName : String : required
deletePeekMessageBatchEntryList : list< DeletePeekMessageBatchEntry > : required

DeletePeekMessageBatchEntry contains the fields: receiptHandle : String : required The message ID obtained after the message is sent successfully. Only messages that have never been received can be deleted.

return DeletePeekMessageBatchResponse

  1. successful : list< string > List of successfully deleted Message IDs
  2. failed : list< MessageBatchErrorEntry > Exception information regarding unsuccessfully deleted messages