# Remove a product from the Darty cart

Automatically remove a product from the Darty cart on darty.com. Remove one line from the Darty cart of your browser and get the cart count and subtotal in euros afterwards.

- Site: darty.com
- Address: `reduck/darty.com/remove_from_cart`
- Updated: 2026-12-01 (v1)
- Author: Reduck AI (reduck)

## About

Use it to clean up a Darty cart. Give the line id and check code from List the items in the Darty cart. The removal is refused if the line changed since you read it, so nothing else is removed. It removes the line from your cart. No account is needed.

## Run it

Ask an AI agent connected to Reduck over MCP (`https://mcp.reduck.ai/mcp`) to run `reduck/darty.com/remove_from_cart`, or run it from a terminal:

```bash
npx @reduck-ai/cli@latest run --script reduck/darty.com/remove_from_cart
```

## Input

- `line_id` (string, required): line_id of the line, from List the items in the Darty cart.
- `review_hash` (string, required): review_hash of the same line, from List the items in the Darty cart.

## Output

- `line_id` (string, required)
- `removed_quantity` (integer, required)
- `name` (string | null, optional)
- `currency` (string, optional)
- `cart_count` (integer, optional)
- `cart_subtotal` (number, optional)

## FAQ

### What does "Remove a product from the Darty cart" do?

Remove one line from the Darty.com (France) cart of this browser, whatever its quantity, as the cart page's delete button does. Pass the line's line_id and review_hash from List the items in the Darty cart: the removal is refused when the line changed since it was read (another quantity, price or offer), and a line that is not in the cart is refused too, so nothing else is ever removed. Returns the line removed, its name, the units removed, and the cart's count and subtotal in euros afterwards. Works as a guest, with no account.

### How do I automatically remove a product from the Darty cart on darty.com?

Ask an AI agent connected to Reduck to run reduck/darty.com/remove_from_cart, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/darty.com/remove_from_cart

### Is there a darty.com API to remove a product from the Darty cart?

You do not need one. "Remove a product from the Darty cart" drives the real darty.com pages in a browser, so it works whether or not darty.com offers an API for this.

### What information do I need to provide?

Required: line_id, review_hash.

### What does it return?

It returns name, line_id, currency, cart_count, cart_subtotal, removed_quantity.

### Do I need to be logged in to darty.com?

No. It only uses pages of darty.com that are reachable without signing in.

### Does it change anything on darty.com, or only read data?

It makes changes on darty.com, like sending, posting, booking or buying something.

### How do I run it?

Ask an AI agent connected to Reduck to run reduck/darty.com/remove_from_cart, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/darty.com/remove_from_cart

### Who maintains it?

It is one of Reduck's official scripts.

Source: https://reduck.ai/explore/scripts/reduck/darty.com/remove_from_cart
