Clearing Messages in a RabbitMQ Queue
This section describes how to clear all the messages in a queue.
Notes and Constraints
- All the messages in the queue will be deleted permanently and cannot be restored. Exercise caution.
- The two methods are supported for RabbitMQ 3.x.x. For RabbitMQ AMQP-0-9-1 instances, messages in a queue can only be cleared on the console.
Prerequisite
A queue has been created.
Procedure
Methods of deleting messages:
- Log in to the RabbitMQ console.
- Click
in the upper left corner to select the region where your instance is located.
- Click an instance name to go to the instance details page.
- In the navigation pane, choose Instance > Virtual Hosts.
- Click a virtual host name.
- On the Queue tab page, click Clear Message in the row containing the desired queue. The Clear Message dialog box is displayed.
All the messages in the queue will be deleted permanently and cannot be restored. Exercise caution.
- Click OK.
- Log in to the RabbitMQ management UI.
- On the Queues tab page, click the name of a queue.
Figure 1 Queues
- Click Purge Messages to remove messages from the queue.
Figure 2 Clearing messages in a queue
All the messages in the queue will be deleted permanently and cannot be restored. Exercise caution.
Related Document
To clear messages in a queue by calling an API, see Clearing Messages in a Queue.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot