Eh, OK, this might be a bit weird question, but I just don't know / understand. In the example section, I fiend the EEPROM-CLEAR sketch. I want to use that to clear the EEPROM (really?) of my Arduino Mega. Do I need to alter the sketch anywhere to tell it the Mega's EEPROM size, or does it work on any Arduino regardless of EEPROM size?
If so, as paulpaulson explained, EEPROM.length() returns the size of the EEPROM for the board you are using, so that for loop at line 29 automatically adjusts to iterate over the entire EEPROM of any board you run the program on:
@paulpaulson ; thanks, no alterations it is. My question answered. @UKHeliBob ; thanks, yes, I know. I want to be sure the Mega 'forgets' what is on there, now.