code: @Override
      @Transactional(MillJpaRepoConfig.TRANSACTION_MANAGER_BEAN)
      public void purgeExpired() {
          log.info("flushing all written log entries over {} days old.", ageInDaysOfPurgeableWrittenLogEntries);
  
          Calendar c = Calendar.getInstance();
          c.add(Calendar.DATE, ageInDaysOfPurgeableWrittenLogEntries * -1);
          Date date = c.getTime();
          long deleted = this.repo.deleteByWrittenTrueAndTimestampLessThan(date.getTime());
          log.info("successfully deleted {} audit log entries that had been written and were timestamped before {}",
                   deleted, date);
  
      }
docs: /* (non-Javadoc)
  @see org.duracloud.mill.audit.generator.LogManager#purgeExpired()