Programming the Due

I read that the memory has to be erased before a new sketch can be downloaded. How many times can the memory be erased & reprogrammed before it can no longer function?

typical 30,000 at 25C, minimum 10,000 at 85C (Table 46-61 in datasheet).