LTE Module Series
EC25&EC21 AT Commands Manual
EC25&EC21_AT_Commands_Manual 121 / 231
9.5. AT+CMGD Delete Message
The command deletes short messages from the preferred message storage <mem1> location <index>. If
<delflag> is presented and not set to 0, then the ME shall ignore <index> and follow the rules of
<delflag> shown as below.
Parameter
Response
+CMGD: (list of supported <index>s),(list of supported
<delflag>s)
OK
Write Command
AT+CMGD=<index>[,<delflag>]
Response
TA deletes message from preferred message storage
<mem1> location <index>.
OK
If there is any error related to ME functionality:
+CMS ERROR: <err>
300ms.
Note: Operation of <delflag> depends on the storage of
deleted messages.
<index> Integer type value in the range of location numbers supported by the associated memory.
<delflag> 0 Delete the message specified in <index>
1 Delete all read messages from <mem1> storage
2 Delete all read messages from <mem1> storage and sent mobile originated
messages
3 Delete all read messages from <mem1> storage, sent and unsent mobile
originated messages
4 Delete all messages from <mem1> storage
<mem1> Messages to be read and deleted from this memory storage
“SM” (U)SIM message storage
“ME” Mobile equipment message storage
“MT” Same as “ME” storage