Hi Surya Selvakumar,
Can you send the screenshots of your cart entity and the functionality which you have done for delete cart, I’ll correct you.
From what it sounds like you are using one entity to show your products and to manage your cart. You need to create a new entity that is cart and you need to create an item in that entity when someone buys something. Then it will be easier to track your orders as well because the items are on the cart entity and not the product entity.
To sum up: Create a cart entity and copy the product data over when someone orders something.
Link the cart to the person and that way you will easliy track the history of their orders too.
You need to create a second entity that you will use to store information about the products in your shopping cart, currently you seem to be using one entity for the products and the shopping cart, hence this result of deleting the product.
i already create the cart entity why when i click the delete button in cart page delete all the product kindly given solution for this problem