Use the flush-jmsdest subcommand in remote mode to purge the messages from a physical destination in the specified target's JMS service configuration.
Ensure that the server is running.
Remote subcommands require a running server.
Purge messages from the a JMS physical destination by using the flush-jmsdest(1) subcommand.
(Optional) If needed, restart the server.
This example purges messages from the queue named PhysicalQueue.
asadmin> flush-jmsdest --desttype queue PhysicalQueue Command flush-jmsdest executed successfully
You can also view the full syntax and options of the subcommand by typing asadmin help flush-jmsdest at the command line.