With the new removeProductFromCart() you can remove a line item/product from the cart using code.
Each line item/product in a shopping cart has an ID. You can find this ID by using getCurrentCart(), and looking under cart.lineItems. Pass this ID to removeProductFromCart() to remove that line item/product.
Note: removeProductFromCart() does not decrement the quantity of a line item/product, rather, it removes the line item/product from the cart entirely.
For example, if you use removeProductFromCart() on a line item of 5 frisbees, all of them are removed from the cart.
Learn more at https://www.wix.com/corvid/reference/wix-stores/removeproductfromcart