Kick Out MQTT Client
emqx_kick_clientDisconnect an MQTT client and clear its session, forcing a fresh connection. Use to recover a client without banning, though queued messages are lost.
Instructions
[DESTRUCTIVE] Disconnect an MQTT client and clear its session.
Queued and in-flight messages for that session are lost. Devices with auto-reconnect usually return within seconds, so this forces a fresh connection rather than blocking one — use emqx_ban to keep a client out.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clientid | Yes | Client id to disconnect. Call emqx_list_clients first to get an exact id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kicked | Yes | True when the broker accepted the disconnect. | |
| clientid | Yes |