You are reading a single comment by @DrAzzy and its replies. Click here to read the full conversation.
  • save(); will erase the current saved program, and save the current state of the Espruino to flash, and then reset the Espruino (which will then start up with the freshly saved program and call onInit() if that function is defined).

    If you want to clear the saved program, you can do reset(); (which restarts without loading saved code) and then save(); to save this clean slate.


Avatar for DrAzzy @DrAzzy started