---
title: "Remove item from cart"
method: DELETE
path: "/ecommerce/cart/item/{productId}"
tags: ["🛒 Ecommerce"]
---

# Remove item from cart

`DELETE /ecommerce/cart/item/{productId}`

The API allows users to remove/discard a complete product from their shopping cart, regardless of its quantity.

The `productId` is passed as a path variable in the URL.

**This API endpoint is designed to remove the specified product entirely** from the user's shopping cart, disregarding any quantity that may have been added previously.

## Response `200`

Remove item from cart

- object
  - `data` object[]
    - `_id` string
    - `product` object
      - `_id` string
      - `description` string
      - `mainImage` object
        - `_id` string
        - `localPath` string
        - `url` string
      - `name` string
      - `price` number
      - `stock` number
    - `quantity` number
  - `message` string
  - `statusCode` number
  - `success` boolean

---

[API](https://skmtc.net/hiteshchoudhary-ssesph/apis/freeapi.md) · [All operations](https://skmtc.net/hiteshchoudhary-ssesph/apis/freeapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hiteshchoudhary-ssesph/freeapi/revisions/a9f3a290e4dc/schema)
