IBM Support

Some ways to delete all messages from an IBM MQ queue

How To


Summary

Some ways to delete all messages from an IBM MQ queue

Objective

The purpose of this article is to describe some ways to delete all messages from an IBM MQ queue.
a) MQ administrative runmqsc command: CLEAR QLOCAL
b) MQ sample "amqsget" (local) or "amqsgetc" (remote)
c) MQ Explorer
d) RFHUTIL utility (from github)
e) q.exe utility (old SupportPac MA01 – now available from github)
f) MQ command: dmpmqmsg
g) MQ samples amqsblst and blast
 

Steps

++ See the attached PDF file:
+++ end +++

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB45","label":"Automation"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSYHRD","label":"IBM MQ"},"ARM Category":[{"code":"a8m0z00000008Q8AAI","label":"Components and Features-\u003EAdministration-\u003EAccounting \/ Statistics"}],"ARM Case Number":"TS008849283","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"}]

Document Information

Modified date:
29 March 2022

UID

ibm16566477