@Override
    public void deleteTempFile(final ResourceKey resourceKey) {
        final ResourceItem resourceItem = currentFiles.remove(resourceKey.getKey());
        if (resourceItem != null) {
            final Path file = resourceItem.getPath();
            try {
                Files.deleteIfExists(file);
                LOGGER.debug("Deleted resourceItem: {}", resourceItem);
            } catch (final IOException e) {
                throw new UncheckedIOException(e);
            }
        }
    }
Simple Store that gives you 1 hour to use your temp file before it deletes it.
stroom-resource/stroom-resource-impl/src/main/java/stroom/resource/impl/ResourceStoreImpl.java