Hi,
Looking some guidance on the following.
We are trying to delete a bulk of rabbitmq queues using a simple shell script which reads queue names one-by-one from a file or equivalent stdin & delete them using following command.
Code sample
------------------------
while read -r line;
do
/usr/sbin/rabbitmqctl eval 'Q = {resource, <<"/">>, queue, <<'\"$line\"'>>}, rabbit_amqqueue:internal_delete(Q).'
done < my_input_file.txt
We see for each queue delete command it returns a "ok" message but actually the queue doesn't getting deleted at all, when we execute the same command via bash console - it works perfectly fine, just curious is there something to be considered related to the bash environment.
Or else would it will be recommended to use some other alternative tools which provides similar functionalities (like : rabbitmqadmin) for this.
I've tried to keep this message as concise as possible, please let me know any other information.