5.8.1 Command Syntax
Command
+CMGD=<index>[,<delfla
g>]
+CMGD=?
5.8.2 Description
EXECUTION command deletes message from memory <mem1> location <index>.
For the setting of <mem1> and description, see the "+CPMS command". If the second
parameter <delflag> is present and not set to 0 then the ME shall ignore <index> and
follow the rules for <delflag> shown below. If deleting fails, +CMS ERROR: <err> is
returned.
TEST command returns the valid memory locations and the supported values of
<delflag>.
The TEST command returns the storage position where the message is currently
stored, and the supported <delflag> values.
5.8.3 Defined Values
<index>: Storage position of message
<delflag>:
0 (or default)
1
messages stored mobile originated messages (whether sent or not) untouched.
2
originated messages, leaving unread messages and unsent mobile originated
messages untouched.
3
mobile originated messages leaving unread messages untouched.
4
messages.
5.9 New Message Acknowledgement to +CNMA
5.9.1 Command Syntax
Command
Issue 18 (2009-06-22)
Delete the messages specified by <index>.
Delete all read messages from preferred message storage, leaving unread
Delete all read messages from preferred message storage and sent mobile
Delete all read messages from preferred message storage, sent and unsent
Delete all messages from preferred message storage including unread
Commercial in Confidence
HUAWEI UMTS M2M Module V100R001
AT Command Interface Specification
Possible response(s)
<CR><LF>OK<CR><LF>
In case of SMS-related error:
<CR><LF>+CMS ERROR: <err><CR><LF>
<CR><LF>+CMGD: (list of supported <index>s)[,(list of
supported
<delflag>s)]<CR><LF><CR><LF>OK<CR><LF>
Possible response(s)
Page 66 of 169