MQCMD_DELETE_CHANNEL (delete channel) MQTT on AIX®, Linux®, and Windows
The Delete Telemetry Channel (MQCMD_DELETE_CHANNEL) PCF command deletes the specified channel definition.
Required parameters
- ChannelName (MQCFST)
- Channel name (parameter identifier: MQCACH_CHANNEL_NAME).
The name of the channel definition to be deleted. The maximum length of the string is MQ_CHANNEL_NAME_LENGTH.
- ChannelType (MQCFIN)
- The type of channel (parameter identifier: MQIACH_CHANNEL_TYPE). Required when deleting a Telemetry channel. The only value that can currently be given to the parameter is MQCHT_MQTT.
Error codes
This command might return the following error code in the response format header, in addition to the values shown in Error codes applicable to all commands.
- Reason (MQLONG)
- The value can be any of the following values:
- MQRCCF_CHANNEL_NOT_FOUND
- Channel not found.