the documentation of the GSM / flush() function says :
(...) flush() clears the modem memory of any sent messages once all outgoing characters have been sent.
Yet, the SMS receiver sketch provided in the Arduino IDE as example of GSM use clearly presents that same function as a way to clear modem memory from received SMS :
// delete message from modem memory sms.flush(); Serial.println("MESSAGE DELETED");
Shouldn't this be corrected in the documentation ?
Or does flush() actually wipe out the modem memory only when a text messages has been first sent?