Remove a item from the cart based on product ID or Tag

New Member
3 0 0

I was wondering if it's possible to remove an item from the cart if its added? We are using a bundling app that adds individual items to the cart as well as the "main bundle" I wanted to keep the individual items in the cart but the remove the main bundle product. Is there a script to remove an item based on the product id?

Shopify Partner
1149 131 195

You can POST into /cart/change.js with quantity 0 and the id of the variant you want to delete from the cart. More info here -

Sergiu Svinarciuc | CTO @
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to or our blog