bt_mesh_model_cb::deinit field
Model deinit callback. Called on every model instance during mesh deinitialization. All model data is deleted, and the model should clear its state. If any of the model deinit callbacks return an error, the mesh subsystem deinitialization will be aborted, and the error will be returned to the caller of bt_mesh_deinit.