---
title: CartLinesRemovePayload - Storefront API
description: Return type for `cartLinesRemove` mutation.
api_version: 2026-07
source_url:
  html: https://shopify.dev/docs/api/storefront/latest/payloads/cartlinesremovepayload
  md: https://shopify.dev/docs/api/storefront/latest/payloads/cartlinesremovepayload.md
---

# Cart​Lines​Remove​Payload

payload

Return type for `cartLinesRemove` mutation.

## Fields

* cart

  [Cart](https://shopify.dev/docs/api/storefront/latest/objects/Cart)

  The updated cart.

* user​Errors

  [\[Cart​User​Error!\]!](https://shopify.dev/docs/api/storefront/latest/objects/CartUserError)

  non-null

  The list of errors that occurred from executing the mutation.

* warnings

  [\[Cart​Warning!\]!](https://shopify.dev/docs/api/storefront/latest/objects/CartWarning)

  non-null

  A list of warnings that occurred during the mutation.

***

## Mutations with this payload

* [cart​Lines​Remove](https://shopify.dev/docs/api/storefront/latest/mutations/cartLinesRemove)

  mutation

  Removes one or more merchandise lines from a [`Cart`](https://shopify.dev/docs/api/storefront/2026-07/objects/Cart). Accepts up to 250 line IDs per request. Returns the updated cart along with any errors or warnings.

  * cart​Id

    [ID!](https://shopify.dev/docs/api/storefront/latest/scalars/ID)

    required

    ### Arguments

    The ID of the cart.

  * line​Ids

    [\[ID!\]](https://shopify.dev/docs/api/storefront/latest/scalars/ID)

    The merchandise line IDs to remove. Mutually exclusive with `viewKeys`.

    The input must not contain more than `250` values.

  * view​Keys

    [\[String!\]](https://shopify.dev/docs/api/storefront/latest/scalars/String)

    The merchandise line `view_key` values to remove, as exposed in Liquid via the cart line `view_key` filter. Mutually exclusive with `lineIds`.

    The input must not contain more than `250` values.

  ***

***

## Map

### Mutations with this payload

* [cart​Lines​Remove](https://shopify.dev/docs/api/storefront/latest/mutations/cartLinesRemove)