Allow to connect to an “IoT” broker using the MQTT protocol to actively unsubscribe from a channel.

Parameters:

Parameters:
MQTTUnSubscribe connects to an MQTT broker and actively removes one or more existing subscriptions for the client (identified by its Client ID). This is useful when you no longer want the broker to keep delivering messages to this client (especially on brokers that maintain persistent sessions).
Note
In MQTT, the UNSUBSCRIBE control packet removes the subscription(s) for the current client session. It does not delete topics nor retained messages; it only stops deliveries to this client.
Tip
MQTT 3.1.1 treats UNSUBSCRIBE as a control command (it doesn’t itself have a QoS level). The UI exposes QoS fields for consistency and for the Will message; brokers may ignore QoS in the context of UNSUBSCRIBE.
Drop the box into your pipeline and open it.
Messages tab
+ and # are supported by MQTT if allowed by your broker).Broker tab
broker.example.com / 1883 (or 8883 for TLS).mqtts (TLS) connections.Save and Run the pipeline.
On success you’ll receive an UNSUBACK and the box will report OK.
Requested Quality of Service
UI consistency field. MQTT UNSUBSCRIBE itself doesn’t deliver application messages, so brokers commonly ignore this. Keep the default (QoS0) unless your environment requires otherwise.
Topics to unsubscribe from
One or more topic filters to remove for this Client ID.
Supports MQTT wildcards (subject to broker policy):
+ matches a single level (sensors/+/temp)
# matches multiple levels (sensors/#)
Notes
- Unsubscribing a topic that wasn’t subscribed is not an error; the broker still returns UNSUBACK.
- Unsubscribe removes subscriptions; it does not clear retained messages on the topic.
Last will (optional)
These fields define the LWT published by the broker if this client disconnects ungracefully while this action is connected.
Broker address / Port
Hostname or IP and TCP port. Defaults: 127.0.0.1 : 1883. For TLS, brokers often use 8883.
Client identifier
Server requires authentication
Enable if your broker enforces auth; the UI will expose username/password (and, with TLS, client-cert options where supported).
Throttling
Maximum number of messages in flight: upper bound of QoS1/2 in-flight control packets. Default is fine for UNSUBSCRIBE.
Broker ping send interval: keep-alive interval (seconds).
Initial time between attempts to reconnect to broker: first retry delay after a connection loss.
Maximum time between attempts to reconnect to broker: caps the backoff.
Time to wait before closing connection (prevents message loss): graceful close wait.
Recommended defaults for this box (typical):
Ping 60s • Initial reconnect 3s • Max reconnect 30s • Close wait 20s.
On error message from broker
Choose runtime behavior if the broker returns an error:
Abort pipeline with ERROR (strict) or Continue with status ERROR (box sets an error status but lets the flow continue).
Use SSL encryption
Enable TLS. Ensure the broker’s certificate chain is trusted by the runtime; for mutual-TLS provide client credentials if your build supports it.
Logs
Toggle Info / Notice / Warning / Error / Debug for diagnosis.
The box emits a single operational status row to the flow context. Typical fields:
_MQTT_Status — OK on success, otherwise an error code/message._MQTT_Broker — the host:port used._MQTT_ClientID — the Client ID used._MQTT_Unsubscribed — list of topics requested.Field names can vary slightly depending on your product build; check the Process → Data panel after a run to confirm exact names.
Topics to unsubscribe from
factory/line1/+/metrics
factory/line2/#
alerts/system
Client ID: etl-line-maintenance.
Result: all three filters are removed for this client’s session.
telemetry/# for etl-telemetry.Unsubscribe does not clear retained messages. To clear one retained topic, publish an empty payload with retained flag = ON from a Publish box to that topic.
# is powerful; ensure your policy permits it before using.| Symptom | Likely cause | Fix |
|---|---|---|
Identifier already in use |
Another client is connected with the same Client ID | Disconnect the other client or change the Client ID |
| Box loops reconnecting | Wrong host/port, firewall, or TLS trust issue | Verify address/port; test with an MQTT CLI; import CA certificates if needed |
Not authorized / Access refused |
Credentials missing/invalid or topic ACL denies UNSUBSCRIBE | Provide correct username/password; check broker ACLs for the Client ID |
| Box reports OK but messages still arrive later | You unsubscribed a different Client ID, or another subscription (different filter) still matches | Confirm the exact Client ID and the precise topic filters currently subscribed |
| Retained message keeps appearing | Unsubscribe does not delete retained messages | Publish an empty retained message to that topic to clear it |
Q: Does UNSUBSCRIBE have QoS?
A: No. UNSUBSCRIBE is a control packet; the “Requested QoS” fields in the UI apply to Will or are kept for UI consistency. Brokers do not apply QoS to UNSUBSCRIBE itself.
Q: Can I unsubscribe from a topic I never subscribed to?
A: Yes. Brokers typically ACK the request; no subscription is removed, and it’s not an error.
Q: Will this delete retained messages?
A: No. Retained messages are independent of subscriptions. Publish an empty retained payload to clear them.
Q: MQTT v5 reason codes supported?
A: When the broker is MQTT v5, UNSUBACK may return per-topic reason codes (e.g., 0x11 Not authorized). The box surfaces these as error messages when applicable.
