Hi, I want to permanently delete events in the persistence journal after a snapshot. I noticed that in the jdbc-journal they are only marked as deleted using withDeleteEventsOnSnapshot criteria. Will this ever be actually deleted or do I have to call a separate API to do so?
hi @nur,
Event deletes are indeed soft deletes by default. You can change that behavior if a config settings.
Cheers,
Thank you @octonato. This is what I was looking for.
This is not true anymore, as these days akka-persistence-jdbc uses hard-deletes, for example when using withDeleteEventsOnSnapshot.
We are using akka 2.6. I tested it. It’s doing soft delete. Also, hard delete may interfere with our application’s operations. As I understand delete includes updating the indices. Some of our persistence ids probably have millions of rows already. I don’t think automatic hard delete would work for our app.