Bootstrap FreeKB - IBM MQ - Delete queue using the delete qlocal qremote qalias commands
IBM MQ - Delete queue using the delete qlocal qremote qalias commands

Updated:   |  IBM MQ articles

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

TYPE(QLOCAL)
TYPE(QREMOTE)
TYPE(QALIAS)

 

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

 

If the queue does not exist, the following will be displayed.

AMQ8147E: IBM MQ object QUEUE01 not found.

 

If the queue contains 1 or more messages, the following will be displayed, and the queue will not be deleted.

AMQ8143E: IBM MQ queue not empty.

 

If the queue contains 0 messages, the following should be displayed.

AMQ8007I: IBM MQ queue deleted.



Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


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