This article describes how to delete all messages from a queue.
You call the queuePurge
method in the Java client library to delete all messages from a queue. The following code provides an example on how to call the queuePurge method:
channel.queuePurge("queue-name");