Whenever a customer logs in on the checkout page, my objective is to eliminate the old cart items (Abandoned Cart) from the checkout.
Currently, when a customer logs in on the checkout page and there are items left in the previous quote (Abandoned Cart) that were not purchased, Magento combines those items after login, following the default behavior.
I'd like Magento to retain only the current item in the cart and remove any previous items when the customer_login event occurs. I do not want this action to take place during the sale_quote_merge events (before or after).
Can you please provide guidance on how to achieve this in Magento 2?