Can I just delete some of the domain event from database table "domain_event_entry"

Hi all,
Can I delete some of the domain event from database table “domain_event_entry” directly?

Do I need do some extra clean up for the “snapshot_event_entry”?

Does anyone did something similar?Are there anything else I should be aware of?

Kind regards,

Keats Wang

from E.Novation

Hi,

as a purist, I have to say ‘why would you ever want to delete the past?’
as a pragmatist, I say: ‘yes, it’s possible. You only have to delete the snapshot event if it is no longer expected to be a correct representation of that state’.

But always think twice becore deleting history. Perhaps it’s possible to use corrective events in the stream?

Cheers,

Allard

Hi Allard,
In our cases, we are working on some data migration.Some of the migrated data is incorrect. Then we want to delete them and re-execute the migration.

Thanks