<div>Hi Alexander,</div>
<div> </div>
<div>the situation is where client connects, publishes, and disconnects. 2nd client comes along to consume message, and fails in some task it tries to do on the data (i.e. message is returned to the queue). 3rd client intervenes (i.e. me manually during test phase with a little script), and wants to clear out all messages that are hanging around on the broker.</div>

<div> </div>
<div>Your test sounds like purge works for the 1st client in the above example, but not for the 3rd. </div>
<div> </div>
<div>Probably I&#39;m not understanding what you intended purge for. Could you help me out with this scenario?</div>
<div> </div>
<div>thanks,</div>
<div>-Steven<br><br></div>
<div class="gmail_quote">On 22 December 2010 15:04, Alexandru Scvorţov <span dir="ltr">&lt;<a href="mailto:alexandru@rabbitmq.com">alexandru@rabbitmq.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hi,<br><br>Using our .NET client, declaring a queue, then immediately purging it<br>works as expected.<br>
<br>Could you supply the code that&#39;s causing the problem?<br><br>Cheers,<br>Alex<br>
<div>
<div></div>
<div class="h5"><br>On Wed, Dec 22, 2010 at 02:37:50PM +0000, Steven Taylor wrote:<br>&gt; update:<br>&gt;<br>&gt;<br>&gt;  code: ch.QueuePurge(queueName,false);<br>&gt;<br>&gt;<br>&gt;<br>&gt; The AMQP operation was interrupted: AMQP close-reason, initiated by Peer,<br>
&gt; code=404, text=&quot;NOT_FOUND - no queue &#39;m.w&#39; in vhost &#39;/&#39;&quot;, classId=50,<br>&gt; methodId=30, cause=<br>&gt;<br>&gt; First off, this error relates to an exchange routing key, so slightly<br>&gt; expected. What wasn&#39;t expected was the error message should have had the<br>
&gt; right queue name &#39;m.w.ctr&#39;.  &#39;m.w&#39; is the queue (not bound to an exchange)<br>&gt; that failed earlier when I tried to purge it because it wasn&#39;t yet created.<br>&gt;<br>&gt; let me try something else...<br>
&gt;<br>&gt; If I first create the queue &#39;m.w&#39; and then attempted to purge it, I still<br>&gt; get the same error message as above.<br>&gt;<br>&gt; Is anybody else seeing this behaviour?<br>&gt;<br>&gt; thanks,<br>
&gt; -Steven<br>&gt;<br>&gt;<br>&gt; On 22 December 2010 13:32, Steven Taylor &lt;<a href="mailto:taylste@gmail.com">taylste@gmail.com</a>&gt; wrote:<br>&gt;<br>&gt; &gt; Hi,<br>&gt; &gt;<br>&gt; &gt; is there equivilent to purge queue for an exchange?  If we can&#39;t already,<br>
&gt; &gt; it would be nice to be able to purge with a routing key.  I see<br>&gt; &gt; an ExchangeDelete. Perhaps I should delete and then redeclare.<br>&gt; &gt;<br>&gt; &gt; Currently I&#39;m using non-durable queues, and taking down the broker +<br>
&gt; &gt; restarting it. I just wanted something a little simpler to execute. This is<br>&gt; &gt; a test phase request.<br>&gt; &gt;<br>&gt; &gt; thanks,<br>&gt; &gt; -Steven<br>&gt; &gt;<br><br></div></div>
<div>
<div></div>
<div class="h5">&gt; _______________________________________________<br>&gt; rabbitmq-discuss mailing list<br>&gt; <a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>&gt; <a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
<br></div></div></blockquote></div><br>