Clearing Messages in a RabbitMQ Queue
This section describes how to clear all the messages in a queue. Methods of deleting messages:
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.
- In the upper left corner, click and select a region.
Select the region where your RabbitMQ instance is.
- Click and choose Application > Distributed Message Service for RabbitMQ to open the console of DMS for RabbitMQ.
- Click an instance name to go to the instance details page.
- In the navigation pane, choose 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.
- 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
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.