How do we purge all the messages through CLI command?

Andreas Mueller

The CLI command is "remove". Look here.

Example:

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$%".
0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact