@Override
    public void deleteTarget(final Target target) {
        // Make sure the stream is closed.
        try {
            if (target instanceof final FsTarget fsTarget) {
                fsTarget.delete();
            } else if (target instanceof S3Target s3Target) {
                s3Target.delete();
            }
        } catch (final RuntimeException e) {
            LOGGER.error(() -> "Unable to delete stream target! " + e.getMessage(), e);
        }
    }
A file system stream store.
Stores streams in the stream store indexed by some metadata.
stroom-data/stroom-data-store-impl-fs/src/main/java/stroom/data/store/impl/fs/FsStore.java