Differences

This shows you the differences between two versions of the page.

Link to this comparison view

sdk:scripts:sms-delete-inbox [2015/05/05 15:04]
sdk:scripts:sms-delete-inbox [2015/05/05 15:04] (current)
Line 1: Line 1:
 +====== SDK Script sms-delete-inbox.are ======
 +<code c 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);
 +
 +</​code>​