Core API
reset
The reset function will reset the network to its initial state and remove any saved network credentials.
Note: This function will disconnect the device if it is connected to a network and stop the captive portal if it is active.
API Reference
You can call this function anywhere in your code.
NW.reset();