# Remove a product from the CVS cart

Automatically remove a product from the CVS cart on cvs.com. Remove one line from this browser's CVS cart and get the cart after the removal.

- Site: cvs.com
- Address: `reduck/cvs.com/remove_from_cart`
- Updated: 2026-11-30 (v1)
- Author: Reduck AI (reduck)

## About

Give it the line id from the list_cart_items script. It removes the line whatever its quantity. If the cart has no such line, it says so and changes nothing. No account is needed.

## Run it

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

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

## Input

- `lineId` (string, required): Id of the line to remove, from List the items in the CVS cart.

## Output

- `count` (integer, required): The number of items in the cart after the removal.
- `lines` (array, required)
- `total` (number | null, required): The estimated cart total in US dollars, after deals and before taxes.
- `removed` (boolean, required): False when the product was not in the cart.

## FAQ

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

Remove one line from the CVS (cvs.com, US) cart of this browser, as the cart page's remove button does, whatever the quantity. Give the lineId of the line, from List the items in the CVS cart. Gives the cart after the removal and removed: true, or removed: false when the cart has no such line, and then nothing is changed. Works as a guest, with no account.

### How do I automatically remove a product from the CVS cart on cvs.com?

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

### Is there a cvs.com API to remove a product from the CVS cart?

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

### What information do I need to provide?

Required: lineId.

### What does it return?

It returns count, lines, total, removed.

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

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

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

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

### How do I run it?

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

### Who maintains it?

It is one of Reduck's official scripts.

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