queues, clearing a local queue" />
Clear a local queue
To delete all the messages from a local queue called magenta.queue, use the following command:
CLRMQMQ QNAME('magenta.queue') MQMNAME(MYQUEUEMANAGER)We cannot clear a queue if:
- There are uncommitted messages that have been put on the queue under syncpoint.
- An application currently has the queue open.