Remove Item

Use the removeItem mutation to remove any items from the cart.

Mutation

removeItem(input: RemoveCartItemInput!): Cart!

RemoveCartItemInput

ArgumentTypeDescription
cartIdID!The id of the cart the item belongs to
idID!The id of the item you want to remove

Example

mutation {
  removeItem(
    input: { cartId: "ck5r8d5b500003f5o2aif0v2b", id: "5e3293a3462051" }
  ) {
    id
    isEmpty
    totalItems
  }
}