TsgcWSPClient_AMQP › Methods › PurgeQueue
Removes all pending messages from a queue (queue.purge).
procedure PurgeQueue(const aChannel, aQueue: string; aNoWait: Boolean = false);
| Name | Type | Description |
|---|---|---|
aChannel | const string | Name of the open AMQP channel on which the operation is issued. |
aQueue | const string | Name of the queue. |
aNoWait | Boolean | When True the client does not wait for the broker to confirm the operation. |
Discards every ready message in the queue. Messages delivered but not yet acknowledged are not affected.
sgcWSPClient_AMQP1.PurgeQueue('ch1', 'orders');