Cmgd, Delete Message - Motorola G24 Guide Developer's Manual

At commands
Hide thumbs Also See for G24 Guide:
Table of Contents

Advertisement

SMS

+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.
Note:
Command Type
Set
Read
Test
The following table shows the +CMGD parameters.
<Parameter>
<index>
<delflag>
Example
AT+CMGD=4
OK
AT+CMGD=1,3
OK
3-132
The deletion of multiple commands is a time-consuming process that may require more
than 60 seconds to complete.
Syntax
+CMGD=<index>
[,<delflag>]
+CMGD=?
Table 3-79: +CMGD Parameters
1-352 Index in the SMS memory of the message to be deleted.
0
Deletes the message specified in <index>
1
Deletes all read messages
2
Deletes all read messages and sent MO messages
3
Deletes all read messages, sent and unsent MO messages
4
Deletes all messages
AT Commands Reference Manual
Response/Action
OK
or:
+CMS ERROR: <err>
The Read command for +CMGD is not
defined by ETSI, and therefore is not
supported by the G24. The G24 returns
an error.
+CMGD: (list of valid
The Test command displays the
supported values of <n>.
<index>s), (list of valid
<deflag>s)
Description
Remarks
December 31, 2007

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents