---
title: "CartLinesRemoveInput"
description: "CartLinesRemoveInput"
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/storefront-api/cart/inputs/cart-lines-remove-input'
  md: 'https://developer.shopline.com/docs/storefront-api/cart/inputs/cart-lines-remove-input.md'
---
# CartLinesRemoveInput

CartLinesRemoveInput

- **API Version:** v20270301
- **API Type:** Storefront
- **API Protocol:** GraphQL
- **Operation Type:** Input

## Type Signature

`CartLinesRemoveInput`

## Input Fields

* `cartId`

  [String!](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  The ID of the cart.

* `lineIds`

  [[String!]!](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  The merchandise line IDs to remove.

* `isNeedReturnCartDetail`

  [Boolean](https://developer.shopline.com/docs/storefront-api/common/scalars/boolean.md)

  Whether to return the latest cart detail.

* `userToken`

  [String](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  customer access token

* `countryCode`

  [String](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  The code of the country.

* `language`

  [String](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  The language of the front client.

## Schema Definition

```graphql
input CartLinesRemoveInput { 
	cartId: String!
	lineIds: [String!]!
	isNeedReturnCartDetail: Boolean
	userToken: String
	countryCode: String
	language: String 
}
```

## Argument from

* [Mutation](https://developer.shopline.com/docs/storefront-api/cart/mutations/cart-lines-remove.md).cartLinesRemove

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/storefront-api/overview.md#status-and-error-codes).

