There are two methods to reset a Shelly module.
From the switch connected to SW1/SW2:
1. If the module is on, you must restart it by turning it off and on again.
2. After powering it up, you have one minute to press the button/switch connected to either input (SW1/SW2) 5 times in a row.
3. You should hear the relay trigger. After the relay noise, the Shelly module should return to AP Mode.
From the module button:
If you have physical access to the device, you can press and hold the reset button on the back of the module for 10 seconds. The Shelly module should return to AP mode.