Hi,
I am using sensor server example to in nrf mesh sdk 5.0.0 to build our own application on top of it. The SoC we are using is nRF52832. I am trying to erase the provisioning information stored in flash on the press of a button connected to GPIO 17. I am initializing the button event handler which is already implemented in the sensor server example to erase the provisioning information stored in flash. On the press of a button, the execution goes to the button event handler to reset the node to its initial unprovisioned state. I have attached the button event handler code and the log for the same for your reference. The thing is, the execution goes to the button event handler, mesh stack is getting cleared and the device is getting reset. On reboot, the device is still provisioned and not returning to the unprovisioned state. What am I missing here?
Log:

Button event handler code:
