public void Delete(SmsDeliverMessage message) { for (int x = 0; x < message.MessageLocation.Count; x++) { // select storage WriteCommandExpectResponse("AT+CPMS=" + message.MessageLocation[x].StorageName, "\rOK\r"); // delete message WriteCommandExpectResponse("AT+CMGD=" + message.MessageLocation[x].MessageIndex, "\rOK\r"); } }