Owner manual
Figure 7 Purge command
The purge command can also be executed with options to purge messages based on filters. The
options and their descriptions are shown in Table 5:
Table 5 Purge options
DescriptionUsage: {broker-name}.sh purge <options> <destination>
Deletes all the messages in queue FOO.BAR.{broker-name}.sh purge FOO.BAR
Deletes all the messages in the destinations that:{broker-name}.sh purge --msgsel
"JMSMessageID='*:10',JMSPriority>5"
QUEUE.*
• matches QUEUE.*
• has a JMSMessageID in the header field that matches
the wildcard *:10
• has a JMSPriority field > 5 in the queue
NOTE: To use wildcard queries, the field must be a string
and the query must be enclosed in ''. Use double quotes ""
for the entire message selector string.
Monitoring activities 41