---
title: "Clear cart"
method: DELETE
path: "/ecommerce/cart/clear"
tags: ["🛒 Ecommerce"]
---

# Clear cart

`DELETE /ecommerce/cart/clear`

The API endpoint allows a logged-in user to clear their entire shopping cart.

By invoking this API, the user can remove all items from their cart, effectively clearing it and starting afresh.

This feature provides a convenient way for users to manage their shopping carts and begin a new shopping session.

## Response `200`

Clear cart

- object
  - `data` unknown[]
    - unknown
  - `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)
