public static int deleteOldSMS(){
  long olderthan=System.currentTimeMillis() - OLD_SMS_THRESHOLD;
  return database.delete(DatabaseOpenHelper.SMS_TABLE_NAME,"date < " + olderthan,null);
}

public static int deleteOldSMS ( ) { long olderthan = System . currentTimeMillis ( ) - OLD_SMS_THRESHOLD ; return database . delete ( DatabaseOpenHelper . SMS_TABLE_NAME , "date < " + olderthan , null ) ; }
deletes sms from the database that are older then 5 days
