FreeKB - delete qlocal qremote qalias commands
IBM MQ - delete qlocal qremote qalias commands

If you are not sure what an MQ queue is, check out our Getting Started tutorial. These examples are based on Linux. Switch to the mqm user.

su - mqm


Start the MQSC utility for the queue manager that contains the queue you want to delete. In this example, MANAGER01 is the name of the queue manager. This assumes that the "mqm" users .bash_profile has been updated to have PATH=$PATH:<root installation directory>/bin.

Before deleting a queue, use the display queue command to determine if the queue is a local queue, remote queue, or queue alias.



The delete qlocal command is used to delete a local queue. The delete qremote command is used to delete a remote queue. The delete qalias command is used to delete a queue alias. In this example, the local queue QUEUE01 is deleted.

echo "delete qlocal ('QUEUE01')" | runmqsc MANAGER01


The following should be displayed.

AMQ8007I: IBM MQ queue deleted.


Add a Comment

We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.

Please enter bd9a0 in the box below so that we can be sure you are a human.