# deleteLineItemById (https://developer.godaddy.com/en/docs/references/rest/orders/line-item/mutations/deleteLineItemById)

***

title: deleteLineItemById
description: "Removes a line item from a draft order"
full: true
----------

mutation

Requires one of `commerce.order:create`, `commerce.order:update`, `commerce.order:cancel`, or `commerce.order:complete` (use the scope that matches the operation).

Removes a line item from a draft order

## Required headers

| Header       | Required | Description                                                                                                                     |
| ------------ | -------- | ------------------------------------------------------------------------------------------------------------------------------- |
| `x-store-id` | Yes      | ID of the store the operation targets. Omitting it returns HTTP 200 with a GraphQL error: `extensions.code: "UNAUTHENTICATED"`. |

Go to [Authentication](https://developer.godaddy.com/docs/api-users/auth) for credential setup.

## Arguments

* `orderId` `ID!` **required**
* `id` `ID!` **required**

## Possible returns

* `Boolean` `Boolean` — The `Boolean` scalar type represents `true` or `false`.
