TsgcWSPClient_AMQPMethods › DeleteQueue

DeleteQueue Method

Deletes a queue (queue.delete).

Syntax

procedure DeleteQueue(const aChannel, aQueue: string; aIfUnused: Boolean = false; aIfEmpty: Boolean = false; aNoWait: Boolean = false);

Parameters

NameTypeDescription
aChannelconst stringName of the open AMQP channel on which the operation is issued.
aQueueconst stringName of the queue.
aIfUnusedBooleanWhen True the operation proceeds only if the object has no bindings/consumers.
aIfEmptyBooleanWhen True the queue is deleted only if it contains no messages.
aNoWaitBooleanWhen True the client does not wait for the broker to confirm the operation.

Remarks

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.

Example

sgcWSPClient_AMQP1.DeleteQueue('ch1', 'orders', True, True);

Back to Methods