Delete unsynchronized RabbitMQ queues
If you get into the unsynchronized queue issue shown in the below picture:
You can use the following command on the primary rabbitmq node hosting the queue (you can see this by clicking on the queue name in Rabbitmq Admin UI):
rabbitmqctl eval '{ok, Q} = rabbit_amqqueue:lookup(rabbit_misc:r(<<rmq>>, queue, <<q_cpm_core_ppmp_machineMsg_enriched>>)), rabbit_amqqueue:delete_crashed(Q).'
The first value under <<>> delimiter is the vhost name while the second is
the queue name.