> For the complete documentation index, see [llms.txt](https://docs.antsomi.com/developers-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.antsomi.com/developers-guide/website/tracking-events/direct-sample-e-commerce-events/remove-a-product-from-the-shopping-cart.md).

# Remove a Product from the Shopping Cart

When a user removes a product from their shopping cart on your website, indicating a change in their purchase decision.

{% tabs %}
{% tab title="JavaScript" %}

```javascript
web_event.track("product", "remove_cart", {
    items: [
        {
            type: "product",
            id: "{{product_id}}", // MD5("{{product_sku}}_{{region}}")
            name: "{{product_name}}",
            quantity: "{{product_quantity}}",
            cdp_source: "Staging" // Staging/Production
        }
    ],
    dims: {
        customers: {
            customer_id: "{{customer_id}}",
            name: "{{customer_name}}",
            email: "{{customer_email}}",
            phone: "{{customer_phone}}",
            cdp_source: "Staging" // Staging/Production
        }
    },
    extra: {
        cart_subtotal: "{{cart_subtotal}}",
        cart_item_count: "{{cart_item_count}}"
    }
});
```

{% endtab %}
{% endtabs %}
