I am using esp32 smartconfig to setup wifi credentials and it is working reliably. I want to be able to erase the credentials which are stored somewhere in flash from my arduino esp32 sketch.
The only way I have been able to erase the credentials (I'm not sure where they are stored) is to erase the entire flash using esptool.py from my Windows PC:
esptool.py --chip esp32 --port com8 erase_flash
I would like to just be able to erase the credentials from my sketch so a user without a pc would have this capability.
Thanks.