Manually you can purge queued messages in the web console http://localhost:8161/
http://activemq.apache.org/how-do-i-purge-a-queue.html
Automatically you can discard expired messages with <sharedDeadLetterStrategy processExpired="false" />
http://activemq.apache.org/message-redelivery-and-dlq-handling.html