I want to Empty the cart items once i click on delete button.
Actually the cart item is going to be empty once i click on delete button and it is deleted but the problem is it is going to be deleted from all loggedin user who has carted the same items in his/her cart area. Here is my domain model and microflows.
change the association Product_Cart from one-to-many to many-to-many. This should solve the issue.
When the association is many to many, instead of setting the value to empty, you can delete a specific Product from the cart.