3.4. activemq:purge, purge
Abstract
Synopsis
activemq:purge [
--msgsel
{
msgsel
...}
] [
--pid PID
] [
--jmxurl JMXUrl
] [
-jmxuser userName
] [
-jmxpassword password
] [
-jmxlocal
] [
--version
] [[
--help
] | [
-h
] | [
-?
]] {
destName
}
Arguments
Table 3.5. activemq:purge Arguments
| Option | Interpretation |
|---|---|
--msgsel msgsel1,msgsel2,... | Purges messages matched by the message selector. See the section called “Message filters”. |
--jmxurl URL | Sets the JMX URL used to locate the broker. |
--pid PID | Set the pid to connect to (only on Sun JVM). |
--jmxuser user | Sets the JMX user, used for authentication. |
--jmxpassword password | Sets the JMX password, used for authentication. |
--jmxlocal | Specifies to use the local JMX server instead of a remote server |
--version | Displays the version information |
-h, -?, --help | Displays the online help for this command |
destName | The specified message destination(s) |
Examples
TEST.FOO on a broker:
JBossA-MQ:karaf@root>activemq:purge TEST.FOO
10:
JBossA-MQ:karaf@root>activemq:purge --msgsel JMSMessaageID='*:10' TEST.FOO
3, enter:
JBossA-MQ:karaf@root>activemq:purge --msgsel JMSPriority=3 TEST.FOO
JBossA-MQ:karaf@root>activemq:purge --msgsel JMSMessaageID='*:10',JMSPriority=3 TEST.FOO

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.