User guide
Developers guidelines | AT commands
187 June 2010
AT+CMGD Delete message
<pdu> Description
Hexadecimal value In the case of SMS: GSM 04.11 SC address fol-
lowed by GSM 03.40 TPDU in hexadecimal format.
ME/TA converts each octet of TP data unit into two
IRA character long hexadecimal number. For exam-
ple, octet with integer value 42 is presented to TE
as two characters, 2A (IRA 50 and 65).
In the case of CBS: GSM 03.41 TPDU in hexadeci-
mal format
Description: Deletes message from preferred message <mem1> (see AT+CPMS) stor-
age location <index>.
If <delflag> is present and not set to 0 then the ME will ignore <index> and
follow the rules for <delflag> shown below.
Execution
command: AT+CMGD=<index>,<delflag>
Test command: AT+CMGD=? Shows if the command is supported.
Test command
response: +CMGD: <index>, <list of delflags>
Parameter:
<index>:
<index> Description
Integer Value in the range of location numbers supported
by the associated memory
<delflag>:
<delflag> Description
Integer Integer indicating request for multiple message
deletion
0 Delete the message specified in <index>
1 Delete all read messages from preferred message
storage leaving unread messages and stored
mobile originated messages (whether sent or not)
untouched
2 Delete all read messages from preferred message
storage and sent mobile originated messages,
leaving unread messages and unsent mobile
originated messages untouched
3 Delete all read messages from preferred message
storage and sent mobile originated messages,
leaving unread messages untouched
4 Delete all messages from preferred message
storage including unread messages










