Name
activemq-admin purge — purges messages from a destination
Synopsis
activemq-admin purge
[--jmxurl JMXUrl
] [-jmxuser userName
] [-jmxpassword password
] [--msgsel {msgsel...}] [-Dname
=value
...] [--version] [[--help] | [-h] | [-?]] destName
Arguments
Argument | Description |
---|---|
--jmxurl
| Sets the JMX URL used to locate the broker. |
--jmxuser
| Sets the JMX user, used for authentication. |
--jmxpassword
| Sets the JMX password, used for authentication. |
--msgsel | Purges messages matched by the message selector. See Message filters. |
-D | Sets a Java system property. For example,
-Dactivemq.home=C:/ActiveMQ . |
--version
| Displays the version information. |
-h, -?, --help
| Displays the online help for this command. |
Examples
The following command purges all the messages in the queue TEST.FOO
on a broker:
c:\
activemq-admin purge TEST.FOO
The following command purges any messages with an ID ending in 10
:
c:\
activemq-admin purge --msgsel JMSMessaageID='*:10' TEST.FOO
The following command purges messages with a priority of 3
, enter:
c:\
activemq-admin purge --msgsel JMSPriority=3 TEST.FOO
The message selectors from the preceding two examples can be combined as follows:
c:\
activemq-admin purge --msgsel JMSMessaageID='*:10',JMSPriority=3 TEST.FOO