Clearing Messages in a RabbitMQ Queue
This section describes how to clear all the messages in a queue.
Methods of deleting messages:
Notes and Constraints
- All the messages in the queue will be deleted permanently and cannot be restored. Exercise caution.
Prerequisite
A queue has been created.
Clearing Messages in a Queue (Console)
- Log in to the console.
- Click
in the upper left corner to select the region where your instance is located.
- Click
in the upper left corner and choose Application > Distributed Message Service for RabbitMQ to open the RabbitMQ instance list.
- 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.
Clearing Messages in a Queue (RabbitMQ Management UI)
- 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.
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