final void teardown(final Path dbDir, final LmdbEnv lmdbEnv) throws IOException {
        if (lmdbEnv != null) {
            lmdbEnv.close();
        }
        if (Files.isDirectory(dbDir)) {
            try (final Stream<Path> fileStream = Files.list(dbDir)) {
                fileStream
                        .filter(path -> path.endsWith("data.mdb"))
                        .forEach(path -> {
                            try {
                                long fileSizeBytes = Files.size(path);
                                LOGGER.info("LMDB file size: {}",
                                        ModelStringUtil.formatIECByteSizeString(fileSizeBytes));
                            } catch (IOException e) {
                                throw new RuntimeException(e);
                            }
                        });
            }
            LOGGER.info("Deleting dir {}", dbDir.toAbsolutePath().normalize().toString());
            FileUtil.deleteDir(dbDir);
        }
    }
Useful for comparing the behaviour of two different envs
stroom-lmdb/src/test/java/stroom/lmdb/AbstractDualEnvLmdbTest.java