wcfmessage-queuemsmqmsmq-wcfmsmq-transaction

Delete a message from OUTGOING QUEUES in msmq


Is it possible to delete a message from outgoing queues? I don't see any option for deleting. How to delete these messages? I am new to msmq. I am trying to send messages from my computer to some other computer. All my messages are sitting in outgoing queue with the status "LOCKED". Not sure why is it locked and I want to delete all these messages in OUTGOING QUEUE.


Solution

  • The various possible status values are described in Internal Private Queues and Outgoing Queues.

    Emptying an outgoing queue is discussed in this question: How to Purge an MSMQ Outgoing Queue.

    I haven't been keeping up to date with MSMQ but I suspect removing individual messages from an outgoing queue is not possible. Outgoing queues are part of MSMQ's internal infrastructure and shouldn't be manipulated by non-MSMQ code.