Magento 2.2.5, I want to clear/empty cart before the current product addtocart.
Check the below scenario:
Added the new product to cart, Up to cart page user not logged In. I have disabled guest checkout, so it will ask to login.
Suppose the customer already added a product in cart and not placed order means it will be in cart. That will add with current cart. But it should not.