axl_bool myqtt_storage_clear ( MyQttCtx ctx,
MyQttConn conn,
MyQttStorage  storage 

Allows to clear current session storage associated to the provided connection.

Cleaning session storage includes cleaning subscriptions, pending messages and will configuration (if any).

ctxThe context where the operation takes place
connThe connection with a client identifier to select the storage to clear
storageThe storage to remove.
axl_true If the operation completes, otherwise axl_false is returned when a failure is found or parameters received aren't well defined.

References myqtt_mutex_lock(), myqtt_mutex_unlock(), and myqtt_storage_clear_offline().

Referenced by myqtt_conn_send_connect_reply().