Updated the syslog loop to break when no more data can be deleted