Parameters and values, Notes, Delete message +cmgd – Synaccess Networks NP-0801DTM User Manual
Page 143: Syntax

3GPP TS 27.005 AT COMMANDS FOR SMS AND CBS
143
HSPA+ AT Commands Reference Guide
Parameters and Values
Location value in the message storage
Destination address, string type represented in the currently selected character
set (see +CSCS); if given it is used instead of the one stored with the message.
Type of destination address.
129
number in national format
145
number in international format (contains the "+")
If message is successfully sent to the network then the result is sent in the format:
+CMSS:
where:
If message sending fails for some reason, an error code is reported:
+CMS ERROR:
Notes
To store a message in the
Make sure that no other SIM interacting commands are issued during command execution. Execution may take
several seconds.
To avoid malfunctions is suggested to wait for the +CMSS:
further commands.
Reference: GSM 27.005.
Delete Message +CMGD
Execute command deletes messages from memory
Test command shows the valid memory locations and optionally the supported values of
+CMGD: (supported
Syntax
Command
Command type
AT+CMGD=
Execute
AT+CMGD=?
Test
Parameters and Values
Message index in the selected storage
where N depends on the available space. See +CPMS.
Integer indicating multiple message deletion request.
0
If 0 or value omitted, delete message specified in
1
Delete all read messages from
stored mobile originated messages (whether sent or not) untouched
2
Delete all read messages from
messages, leaving unread messages and unsent mobile originated messages
untouched.
3
Delete all read messages from
originated messages, leaving unread messages untouched.