Delete old messages from queues

Removing old or non-used messages from queues in large or test MQ environments is a real problem for admins.
Especially, when the number of queues reaches hundreds and thousands. The best way to solve this problem is use dmpmqmsg utility (aka qload, MO03 SupportPac) and write shell script. Qload is now (from MQ v8) part of the product, renamed to dmpmqmsg.

Here is dmpmqmsg utility usage instructions and simple examples:

Look at “-T

To delete all messages, without backuping messages to files, you need to use command (without “-T” & “-F” keys):
dmpmqmsg -m $QMgr -I$QName

VN:F [1.9.22_1171]
Rating: 4.8/5 (6 votes cast)
Tagged with: , , , ,
Posted in WebSphere MQ, Tools
One comment on “Delete old messages from queues
  1. Rohan says:

    Can we purge message from the queue which are older than 2 days without writing into a file?

    VA:F [1.9.22_1171]
    Rating: +3 (from 3 votes)

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">