On iOS, you will be able to select the option to 'erase data and keep eSIMs' during your factory reset. On Android devices, you will also be able to select the option to erase your eSIMs (note that this options is unselected by default — so if you le...