--- title: cartLinesRemove - Storefront API description: > Removes one or more merchandise lines from a [`Cart`](/docs/api/storefront/unstable/objects/Cart). Accepts up to 250 line IDs per request. Returns the updated cart along with any errors or warnings. api_version: unstable api_name: storefront source_url: html: 'https://shopify.dev/docs/api/storefront/unstable/mutations/cartLinesRemove' md: >- https://shopify.dev/docs/api/storefront/unstable/mutations/cartLinesRemove.md --- # cart​Lines​Remove mutation Removes one or more merchandise lines from a [`Cart`](https://shopify.dev/docs/api/storefront/unstable/objects/Cart). Accepts up to 250 line IDs per request. Returns the updated cart along with any errors or warnings. ## Arguments * cart​Id [ID!](https://shopify.dev/docs/api/storefront/unstable/scalars/ID) required The ID of the cart. * line​Ids [\[ID!\]!](https://shopify.dev/docs/api/storefront/unstable/scalars/ID) required The merchandise line IDs to remove. The input must not contain more than `250` values. *** ## Cart​Lines​Remove​Payload returns * cart [Cart](https://shopify.dev/docs/api/storefront/unstable/objects/Cart) The updated cart. * user​Errors [\[Cart​User​Error!\]!](https://shopify.dev/docs/api/storefront/unstable/objects/CartUserError) non-null The list of errors that occurred from executing the mutation. * warnings [\[Cart​Warning!\]!](https://shopify.dev/docs/api/storefront/unstable/objects/CartWarning) non-null A list of warnings that occurred during the mutation. *** ## Examples * ### cartLinesRemove reference