98-08901C68-O 135
AT Commands Reference
AT+CMGW="5124335432",145,"STO SENT"
> This is the message body. ^Z
+CMGW: 127
OK
AT+CMGR=127
+CMGR: "STO SENT","+5124335432"
This is the message body.
OK
4.5.1.17 +CMGD, Delete Message
This command handles deletion of a single message from memory location <index>, or multiple messages according to
<delflag>. If the optional parameter <delflag> is entered, and is greater than 0, the <index> parameter is practically ignored. If
deletion fails, result code +CMS ERROR: <err> is returned.
Set Command
Read Command
The Read command for +CMGD is not defined by ETSI, and therefore is not supported by the g20. The g20 returns an error.
Test Command
The following table shows the +CMGD parameters.
Command Response/Action
+CMGD=<index>[,<delflag>] OK
or:
+CMS ERROR: <err>
Command Response/Action
+CMGD=? +CMGD: (1-352),(0-4)
Table 58. +CMGD Parameters
<Parameter> Description
<index> 1-352 Index in the SMS memory of the message to be
deleted.