How to reset a Xenon?

Thank you @kennethlimcp.

=====================================
With the code you sent me earlier (thanks again),

I was able to replace the Xenon above with another unit which is now working at the remote site. One (minor issue) remains where if a Xenon gets an OTA firmware update, it joins the Mesh but not the Cloud. The only way I found to make it join the Cloud is to remotely reset its Gateway (my new firmware supports that).