Log in
Model

QuoteItemsCleaner

Magento\Quote\Model\Product\QuoteItemsCleaner

What it does

This class removes all quote items associated with a specific product from the shopping cart database.

Developers would use this when a product is deleted or needs to be removed from all customer carts, ensuring data consistency across the system.

It provides a centralized way to clean up quote items without manually iterating through individual carts.

Public Methods

  • execute()