code: public void scythe() {
          log.debug("Starting Audit Cleanup");
          if (maxAuditAllowedDays >= 0) {
              Calendar calendar = Calendar.getInstance();
              calendar.add(Calendar.DAY_OF_MONTH, maxAuditAllowedDays * -1);
              final Date since = new Date(calendar.getTimeInMillis());
              final List<? extends AuditModel> toDelete = auditService.getAuditLogs(since, new Date());
              if (toDelete != null) {
                  final List<String> idstoDel = getIdList(toDelete);
                  log.info("Deleting {} audit entries ", idstoDel.size());
                  if (toDelete != null) {
                      auditService.deleteAudits(idstoDel);
                  }
                  log.info("Going to sleep now");
              } else {
                  log.info("AuditService return null when ask to give audits with in this range {} {}", since,
                      new Date());
              }
          } else {
              log.info("Skipping scythe maxAuditAllowedDays is set to infinity");
          }
      }
docs: <p>Search all logs to be deleted and send there id's to the audit service to be deleted.</p>
  <p>If maximum days is set to  -1 nothing will deleted, 0 it delete all audits daily.</p>