AT Commands Reference Guide
80529ST10815A Rev.2– 2017-09-14
ReproductionforbiddenwithoutTelitCommunicationsS.p.A.writtenauthorization‐AllRightsReserved page98of233
+CMGD - Delete Message
4 - Delete all messages from <memr> storage.
Note: if <delflag> is present and not set to 0 then <index> is ignored and ME shall
follow the rules for
<delflag> shown above.
AT+CMGD=?
Test command shows the valid memory locations and optionally the supported
values of
<delflag>.
+CMGD: (su
orted <index>s list)[,(su
orted <delfla
>s list)]
Example
AT+CMGD=?
+CMGD:
(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,3
0,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50),(0-4)
OK
AT+CMGD=11 Delete message in 10th record
OK
AT+CMGD=1,4 Delete all messages
OK
Reference
3GPP TS 27.005