User Manual
command
AT+CMGD=3
response:
OK
In this case, the SMS was successfully deleted.
2- Let us assume you want to delete a received SMS that was stored to the index position
number 7:
command
AT+CMGD=7
response:
OK
A new SMS can be read with the command
send command AT+CMGR=<index><cr>
where:
<index>: SMS location index
wait for response in the format:
Output format for received messages (the information written in italics will be present
depending on +CSDH last setting):
+CMGR: <stat>,<oa>,<alpha>,<scts>[,<tooa>,<fo>,<pid>,
<dcs>,<sca>,<tosca>,<length>]<CR><LF><data>
Output format for sent messages:
+CMGR: <stat>,<da>,<alpha>[,<toda>,<fo>,<pid>,<dcs>,,
<sca>,<tosca>,<length>]<CR><LF><data>
Output format for message delivery confirm:
+CMGR: <stat>,<fo>,<mr>,,,<scts>,<dt>,<st>
where:
<stat> - status of the message
"REC UNREAD" - new received message unread
"REC READ" - received message read
"STO UNSENT" - message stored not yet sent
"STO SENT" - message stored already sent
<fo> - first octet of the message PDU