Clearing RabbitMQ Message Queues

You are viewing documentation for an older version of Secret Server. If you are using Secret Server Cloud visit the current version of this documentation here. If you are using Secret Server On-Premises choose the version that matches yours from this list.
For release dates, end-of-support timelines, and upgrade guidance, see the Secret Server Product Lifecycle page.

Some users note that older RabbitMQ message queues in Ready state are not clearing as expected, so messages accumulate. To clear the message queues, use the procedure below.

  1. On the machine where RabbitMQ is installed, download the utility for removing old RabbitMQ queues.

    SHA1(RMQ_QueueRemoval.zip)= B8EE3CD2488AF2D7A42421B870EB8041434245C8

    SHA256(RMQ_QueueRemoval.zip)= B9AF3BF51B0E1E6E937830A6CF0974D3546183B78E1E86F6C8563E5E7243146A

  2. Extract the zip file.

  3. Open Windows PowerShell.

  4. Navigate to the directory where you extracted the zip file.

  5. Load the file by typing the following command:

    . .\RMQ_QueueRemoval.ps1

  6. Run the commands below in the order shown:

    1. ShowAllQueues

    2. ShowQueuesNoConsumer

    3. DeleteQueuesNoConsumer