Deleting a message from RabbitMQ queue
search cancel

Deleting a message from RabbitMQ queue

book

Article ID: 433639

calendar_today

Updated On:

Products

VMware Tanzu Application Service VMware Tanzu RabbitMQ

Issue/Introduction

A message is stuck in a RabbitMQ and needs to be manually deleted.

Environment

VMware Tanzu RabbitMQ for Tanzu Application Service

Cause

Message has been received by the consumer but the RabbitMQ server did not receive any acknowledgement of the delivery

Resolution

Logon to RabbitMQ Management console.

Select "Queues and Streams" and select the queue with the stuck message.

Review "Ack Mode" and if its set to "Nack message requeue true", change it to "Auto Ack" and select "Get Message". This will remove it from the queue.

Additional Information

As an alternative, all messages can be removed from the queue by selecting "Purge" on the RabbitMQ Management Console. But proceed with caution as this could delete other messages that have not been delivered to the consumer.