You can read this discussion:
I’m not sure if this is what you want.
Do you want to get the program that came installed in the ESP32 by default?
My problem was, after a upload to the esp32 for a project, the module did not came up in wifi environment like it was the first time i start. So i must find a good solution to restart from the factory point. With the follow command i can erase the flash i uploaded. In a windows10 command window ( not powershell ) i start:
esptool.exe –chip auto erase_flash
This find automatic the correct esp32 module connected via usb, detect the correct chip, and erase the flash memory, after reloading my project everything function. So problem fixed. Probably this have the same result with esptool.py but i did not test this.
thanks for help