title: Purge IBM MQ Queue programmatically
body: <p>Is there any way to purge IBM MQ Queue programmatically? I have few messages lying in the Queue but when I read the messages using Consumer code , the messages are still present in the queue. I am assuming there are some uncommitted messages present in queue.  I do not have access to MQ explorer so I want to clear the queue programmatically. (either through JMS code or IBM MQ implementation way)</p>
  
  <p>Currently my consumer has jar file <strong>com.ibm.mq-6.0.2.1.jar</strong>  So I prefer to use WMQ classes rather than JMS.</p>