Hi No the JMS API has not such an api to delete a message. http://stackoverflow.com/questions/9529214/how-to-delete-a-message-from-the-jms-queue
You can delete the queue though. But maybe that is not what you want. But some message brokers has API that allows to delete a message / messages. Such as ActiveMQ has: http://activemq.apache.org/how-do-i-purge-a-queue.html And also hawtio has a delete message(s) API: http://hawt.io/ On Wed, May 1, 2013 at 5:59 PM, salemi <sal...@avaya.com> wrote: > Hi, > > I need to delete all existing messages in a jms queue once of receive a > specific message. Does camel provide an option to delete all jms messages in > a queue? > > Thanks, > Ali > > > > ----- > Alireza Salemi > -- > View this message in context: > http://camel.465427.n5.nabble.com/delete-all-messages-in-jms-queue-tp5731868.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: cib...@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen