---
schema_version: "1"
id: be2e974734a7401e442eb0847997139bb9afdd417f61eb7ea849197a95ee9928
title: Delete Line Items from Cart Invocable Action
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/comms_invocable_action_delete_line_items_from_cart.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.comms_invocable_action_delete_line_items_from_cart.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: b9a30bbebecf363cb581d10318b039ae2e58614904230880d18090a59e793881
description: Use this action to delete a line item from a quote or an order based on specified inputs. Also, this action disconnects an existing asset item from a quote or an order. For example, a sales rep can use this action to discontinue the internet package service for a customer.
products:
  - Communications
  - Media
  - Energy and Utilities
release: "264"
---
# Delete Line Items from Cart Invocable Action

Use this action to delete a line item from a quote or an order based on specified inputs. Also, this action disconnects an existing asset item from a quote or an order. For example, a sales rep can use this action to discontinue the internet package service for a customer.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions</td></tr></tbody></table>

## Industries CPQ API Used to Invoke Delete Line Items from Cart Invocable Action

- deleteCartsItems

## Input Values

| Parameter | description | data type |
| --- | --- | --- |
| cartId | The ID of the quote or order record from which a line item must be deleted or disconnected. | String |
| itemId | The ID of the line item record to delete or disconnect from a line item. | String |

## Output Values

| Parameter | description | data type |
| --- | --- | --- |
| error | An error due to which the line item or product wasn’t deleted or disconnected. | String |
| successMessage | A message indicating whether the line item or product is deleted or disconnected. | String |

## Example

JSON Request

```json
cartId = {!cartId} (801Dn000000vROCIA2)
itemId = {!lineitemId} (802Dn000002xAjRIAU)
   
```

JSON Response Body

```json
error (null)
successMessage (Successfully deleted.)
```