How to delete events in Akka Persistence


How to delete events from cassandra database which is starting with specific prefix.
Say, If I am creating persistent actors with name "Actor+xx… Now I want to delete all the events which has a prefix “Actor”.

How to achieve this usecase ?

We have method called deleteMessages(long seqNo). This will delete the message till this seqNo.

Do we have any other support for deleting message in Akka Persistence


Hi @anilkumble there’s currently no way to delete events for persistenceIds that match a pattern. You’ll need to do it for each persistent actor.

Hi @chbatey

Can you please share how I can delete events for specific persistent actor upon receiving some specific command.
Note :- I am using Akka 2.6.4 with Java and implementing Event Sourced Behaviour