https://github.com/espressif/esptool/blob/785a3db318961001fff6a19fd728410ead681cc9/esptool/cmds.py#L724 In write_flash(), arg force is not forward to erase_flash(), So if you need to force and erase_all, it's not possible.