TsgcWSPClient_AMQP › Methods › DeleteExchange
Deletes an exchange (exchange.delete).
procedure DeleteExchange(const aChannel, aExchange: string; aIfUnused: Boolean = false; aNoWait: Boolean = false);
| Name | Type | Description |
|---|---|---|
aChannel | const string | Name of the open AMQP channel on which the operation is issued. |
aExchange | const string | Name of the exchange. |
aIfUnused | Boolean | When True the operation proceeds only if the object has no bindings/consumers. |
aNoWait | Boolean | When True the client does not wait for the broker to confirm the operation. |
Removes the named exchange from the broker. When aIfUnused is True, the delete only succeeds if the exchange has no bindings, protecting against accidental data loss.
sgcWSPClient_AMQP1.DeleteExchange('ch1', 'ex.orders', True);