code: protected void deleteEntryFiles() throws IOException {
      File[] files = getDirectory().listFiles();
      if(files == null) return;
      
      String prefix = getEntryLogPrefix();
      String suffix = getEntryLogSuffix();
      
      for (File file : files) {
        String fileName = file.getName();
        if (fileName.startsWith(prefix) && fileName.endsWith(suffix)) {
          if (file.delete()) {
            _log.info("file " + file.getAbsolutePath() + " deleted");
          } else {
            _log.warn("file " + file.getAbsolutePath() + " not deleted");
          }
        }
      }
    }
docs: Delete entry log files on disk.
  
  @throws IOException