TsgcWSPClient_AMQP › Methods › DeleteQueue
Deletes a queue (queue.delete).
procedure DeleteQueue(const aChannel, aQueue: string; aIfUnused: Boolean = false; aIfEmpty: Boolean = false; 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. |
aIfUnused | Boolean | When True the operation proceeds only if the object has no bindings/consumers. |
aIfEmpty | Boolean | When True the queue is deleted only if it contains no messages. |
aNoWait | Boolean | When True the client does not wait for the broker to confirm the operation. |
Removes the named queue and all pending messages. aIfUnused and aIfEmpty can be used to avoid destroying a queue that is still consumed or still has messages.
sgcWSPClient_AMQP1.DeleteQueue('ch1', 'orders', True, True);