SDK Script sms-delete-inbox.are

sms-delete-inbox.are
/* DESC: This script can be used to flush the SMS inbox.
 * Copyright (C) 2012 NetModule AG, Switzerland
 */
 
msgs = nb_sms_list();
 
for (i=0; i<(int)msgs; i++) {
   nb_sms_delete(msgs[i]);
}
 
printf("flushed SMS inbox");
 
exit(0);