AT+CMGD
This command is used to delete the SMS messages stored in the SIM memory.
For further information on AT+CMGD command, see the chapter "Functional Examples".
Command
AT+CMGD=<index>,<deflag> OK / ERROR
<index> Memory index
<deflag> Delete method
0
Delete the message in the <index> position.
If <deflag> value is omitted, it will be equal at 0.
1
Delete all the received and read messages: "REC READ". The <index> value is
ignored.
2
Delete all the received, read, saved and sent messages: "REC READ" and "STO
SENT". The <index> value is ignored.
3
Delete all the received, read, saved, sent and unsent messages: "REC READ", "STO
SENT" and "STO UNSENT". The <index> value is ignored.
4
Delete all messages. The <index> value is ignored.
AT+CMGL
This command displays the list of the SMS messages stored in the SIM memory.
For further information on AT+CMGL command, see the chapter "Functional Examples".
Command
AT+CMGL=<stat>
<stat>
Display method
Text mode
PDU mode
"REC UNREAD"
"REC READ"
"STO UNSENT"
"STO SENT"
"ALL"
AT+CMGR
This command allows to display a specific SMS stored in the SIM memory
For further information on AT+CMGR command, see the chapter "Functional Examples".
Command
AT+CMGR=<index>
36
Delete messages
Possible answers
Messages List
Possible answers
OK / ERROR
Description
0
Displays all the received unread messages
1
Displays all the received and read messages
2
Displays all the stored unsent messages
3
Displays all the stored sent messages
4
Display all the messages
Display message
Possible answers
OK
Action
Delete the messages
Action
Shows the list of SMS
Action
Shows the message