private void closeAndDeleteStore(final RefDataOffHeapStore store) {
        // This likely means all data has been migrated so delete it
        final RefDataLmdbEnv lmdbEnvironment = store.getLmdbEnvironment();
        LOGGER.info("Closing and deleting empty ref data LMDB env from {}", lmdbEnvironment.getLocalDir());
        try {
            lmdbEnvironment.close();
            try {
                lmdbEnvironment.delete();
            } catch (Exception e) {
                LOGGER.error("Error deleting ref data lmdb env {}: {}", lmdbEnvironment, e.getMessage(), e);
            }
        } catch (Exception e) {
            LOGGER.error("Error closing ref data lmdb env {}: {}", lmdbEnvironment, e.getMessage(), e);
        }
    }
@return The count of feed stores initialised, 1 or 0.
stroom-pipeline/src/main/java/stroom/pipeline/refdata/store/offheapstore/DelegatingRefDataOffHeapStore.java