EEPROM not erasing after sketch upload

Hey guys, so I changed computers (PC to Mac) and uploaded the same sketch I was working on.

The sketch uses some EEPROM functionalities to save some configs.

When I upload the sketch to the Arduino Nano in my Mac, the EEPROM is not cleared, and the program starts with the saved configurations.

Is there something I am missing in the IDE?

Thanks!

yes there is, depending a bit on which core you use there may be a setting under 'tools' that defines if the eeprom will be erased or not,

You’ll need to erase them in a sketch.

it's not in the IDE. the EEPROM is in your Arduino and EEPROM memory values will stay there until your replace them by something else. Your code needs to do this

I have observed that my EEPROM always gets erased with every new code upload.
That seems like broken behaviour to me.
I have checked in Tools and I see no setting for:
"gratuitously and unceremoniously erase EEPROM"

Upon further digging I see, and vaguely re-remember that given the feather/SAMD
do not have EEPROM and since I am using FlashAsEEPROM, the flash gets zeroed
when a sketch is uploaded.
In addition, I notice that sometimes after a power-cycle the variables saved in
emulated EEPROM do not "come back" - while others do.