> For the complete documentation index, see [llms.txt](https://fredhopper.gitbook.io/product-discovery/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fredhopper.gitbook.io/product-discovery/resources/archived-pages/the-tracking-api-and-js-library/what-to-track/generic-actions/remove-from-cart.md).

# Remove from Cart

When your user decides to remove a product entirely from the cart, you should send an **remove-from-cart** action.

```javascript
const removeFromCartAction = {
    "action":"remove-from-cart",
    "target": {
        "product":"83647582"
    },
}

xo.activity.send(removeFromCartAction);
```

The properties needed for sending a **remove from cart** event are as follows:

* `action` - you need to specify the action as **remove-from-cart**
* `target.product` - you need to specify the product id that is removed from cart. If you are implementing an **FHR** integration, this would be equal to the `secondId` available in the **FHR query** response.

Any additional information you wish to send can also be included in the `metadata` \_\*\*\_object.
