To restart RabbitMQ with clearing the Mnesia database:
Stop RabbitMQ on nodes one by one:
salt msg01* cmd.run 'systemctl stop rabbitmq-server'
salt msg02* cmd.run 'systemctl stop rabbitmq-server'
salt msg03* cmd.run 'systemctl stop rabbitmq-server'
Remove the Mnesia database on all nodes:
salt msg0* cmd.run 'rm -rf /var/lib/rabbitmq/mnesia/'
Apply the rabbitmq state on the first RabbitMQ node:
salt msg01* state.apply rabbitmq
Apply the rabbitmq state on the remaining RabbitMQ nodes:
salt -C "msg02* or msg03*" state.apply rabbitmq