# Remove a product from the World Market cart

Automatically remove a product from the World Market cart on worldmarket.com. Remove lines from the World Market (worldmarket.com, US) cart of this browser and return the cart as the site holds it afterwards. Give lineId to remove one line, or offerId to remove every line of that variant, whatever its quantity. Both come from List the items in the World Market cart. Returns removed (true when lines were removed, false when no line matched, and then nothing is changed), the number of units, the subtotal before shipping and tax, and each line left with its line id, offer id, name, seller, quantity, unit price and line price in US dollars. Works as a guest, with no account.

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

## Run it

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

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

## Input

- `lineId` (string, optional): Id of the line to remove, from List the items in the World Market cart.
- `offerId` (string, optional): Id of the variant whose lines to remove, from List the items in the World Market cart.

## Output

- `count` (integer, required): Number of units in the cart.
- `lines` (array, required)
- `total` (number | null, required): Subtotal in US dollars, before shipping and tax.
- `removed` (boolean, required): True when lines were removed; false when no line matched.

## FAQ

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

Remove lines from the World Market (worldmarket.com, US) cart of this browser and return the cart as the site holds it afterwards. Give lineId to remove one line, or offerId to remove every line of that variant, whatever its quantity. Both come from List the items in the World Market cart. Returns removed (true when lines were removed, false when no line matched, and then nothing is changed), the number of units, the subtotal before shipping and tax, and each line left with its line id, offer id, name, seller, quantity, unit price and line price in US dollars. Works as a guest, with no account.

### How do I automatically remove a product from the World Market cart on worldmarket.com?

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

### Is there a worldmarket.com API to remove a product from the World Market cart?

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

### What information do I need to provide?

Optional: lineId, offerId.

### What does it return?

It returns count, lines, total, removed.

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

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

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

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

### How do I run it?

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

### Who maintains it?

It is one of Reduck's official scripts.

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