I am following the shopping cart with event sourced entity example. If the cart is the entity, is it possible to delete a particular cart? And how? I have tried to create a new blank cart as a workaround, but it doesn’t work. I am running it locally on my machine.
There is currently no delete for the event sourced entities, instead you will have to introduce a delete/tombstone/closed event that you persist and implement logic/state so that the event sourced entity does not allow any further updates after that.
ValueEntities on the other hand can be deleted using the
.deleteState effect in the Java/Scala SDK or
deleteState() on the command context in the JS/TS SDK
I see, Thx @johanandren