Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have a message queue on our queue server to which no-one has access. During a test we removed all the users from the queue. Now no-one can access it at all.

share|improve this question
up vote 9 down vote accepted

There is a file in the system32\msmq\storage\lqs directory that contains the configuration for this queue. Find the file that contains the name of the queue you are talking about. If you delete the file and restart MSMQ, the queue has gone. Obviously don't delete any of the other files!

share|improve this answer

Also you can run this code snippet. Note that your project should reference System.Messaging

using System.Messaging;

.
.

.

MessageQueue[] msmques = MessageQueue.GetPrivateQueuesByMachine(".");
foreach (var item in msmques)
{
        MessageQueue.Delete(".\\"+item.QueueName);
}
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .