final class EventSourcedCleanup(systemProvider: ClassicActorSystemProvider, configPath: String)
Scala API: Tool for deleting all events and/or snapshots for a given list of persistenceIds without using
persistent actors. It's important that the actors with corresponding persistenceId are not running at the same time
as using the tool.
If resetSequenceNumber is true then the creating entity with the same persistenceId will start from 0.
Otherwise it will continue from the latest highest used sequence number.
WARNING: reusing the same persistenceId after resetting the sequence number should be avoided, since it might be
confusing to reuse the same sequence number for new events.
When a list of persistenceIds are given they are deleted sequentially in the order of the list. It's possible to
parallelize the deletes by running several cleanup operations at the same time operating on different sets of
persistenceIds.
Deletes all events for the given persistence id from before the snapshot. The snapshot is not deleted. The event
with the same sequence number as the remaining snapshot is deleted.
Deletes all events for the given persistence id from before the snapshot. The snapshot is not deleted. The event
with the same sequence number as the remaining snapshot is deleted.