How do we purge all the messages through CLI command?

Andreas Mueller

The CLI command is "remove". Look here.


router1/sys$queuemanager/usage> remove testqueue *
Removes all messages from testqueue. This command is also available in SwiftMQ Explorer in the Viewer frame ("Drain Queue" button).

Another way is the "Multi Queue Purger Job" as described here. It takes a SQL LIKE predicate as the name parameter. To purge all durable subscribers, use "%$%". To purge only durable subscriber queues of client id "xyz" use predicate "xyz$%".
About | Sitemap | Contact