Deleting events for a persistence Actor

Hello, We need a way to delete events from our Cassandra DB for a persistent entity. Akka persistence supports deleteMessages but I can’t find any way to do that in Lagom.

Another approach to safely delete messages is after the snapshot generation, but there is no example on that either.

Hi @nav,

Lagom API doesn’t expose this functionality. The best choice for now is to migrate to Akka’s EventSourcedBehavior. See https://www.lagomframework.com/documentation/1.6.x/scala/MigratingToAkkaPersistenceTyped.html

Than you will have access to the APIs to delete events.

Cheers,

Renato