Click here to Skip to main content
15,888,253 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
We want to make disappear the outgoing message queues to be sure that our app wouldn't use them anymore. If Outgoing Message Queues are temporary, when does it disappear from compmgmt.msc when they are suspended and cleared, and the application only uses local message queues afterword? Is there a way to delete them?
Best Regards,

What I have tried:

We searched in the tech documentation of Microsoft, post on their blog. We also looked for the info on other websites and forums like StackOverflow, Reddit, Google Groups.
Posted
Updated 2-Nov-19 1:22am

1 solution

Here's an example for Powershell:
Get-MsmqOutgoingQueue -Name "Order*" | Clear-MsmqOutgoingQueue
For more information, see: Clear-MSMQOutgoingQueue[^]

And here is a more radical example that deletes all queues: Delete all MSMQ queues · GitHub[^]
 
Share this answer
 
v2
Comments
Member 14641633 4-Nov-19 9:13am    
Thank you for your answer. But we already did clear the outgoing message queues from its messages with this command. We are looking for the reason the Manager keeps the queue live and does not remove it. And if we can remove it ourself.
Regards,

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900