PURGE CHANNEL
Use the MQSC command PURGE CHANNEL to stop and purge a telemetry channel. Purging a telemetry channel disconnects all the MQTT clients connected to it, cleans up the state of the MQTT clients, and stops the telemetry channel. Cleaning the state of a client deletes all the pending publications and removes all the subscriptions from the client.
UNIX and Linux® | Windows |
---|---|
Parameter descriptions for PURGE CHANNEL
- (channel name)
- The name of the telemetry channel to be stopped and purged. This parameter is required.
- CHLTYPE(MQTT)
- Channel type. This parameter is required. It must follow immediately after the (channel-name) parameter on all platforms except z/OS®, and the value must currently be MQTT.
- CLIENTID(string)
- Client identifier. The client identifier is a 23 byte string that identifies a IBM® WebSphere® MQ Telemetry Transport client. When the PURGE CHANNEL command specifies a CLIENTID, only the connection for the specified client identifier is purged. If the CLIENTID is not specified, all the connections on the channel are purged.