Delete Channel (MQTT)

The Delete Telemetry Channel (MQCMD_DELETE_CHANNEL) 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.

This command might return the following error codes in the response format header, in addition to the values shown on page Error codes applicable to all commands.


Error codes

    Reason (MQLONG)
    The value can be any of the following values:

      MQRCCF_CHANNEL_NOT_FOUND
      Channel not found.

Parent topic: Definitions of the Programmable Command Formats