At this time it is problematic to empty the cart from the store, I am making a custom cart and it would be very useful to empty it with a function. Using a loop to empty it is not reliable and not every product will be removed, maybe because of latency in the deleteItemFromCart function.
To see this working, head to your live site.
Search
Chechen you delete item from cart function