---
description: Empty the user cart using this api.
---

# Clear user cart

## This endpoint allows you empty the user cart

<mark style="color:blue;">`GET`</mark> `https://castleindia.in/emart/public /api/clear-cart /api/clear-cart`

#### Headers

| Name             | Type   | Description                       |
| ---------------- | ------ | --------------------------------- |
| Authentication\* | String | Bearer {bearer\_token} goes here. |

{% tabs %}
{% tab title="200: OK Upon successful response you will get the following" %}
```javascript
{
    "msg": "Cart is now empty !",
    "status": "success"
}
```
{% endtab %}

{% tab title="401: Unauthorized If not logged in" %}
```javascript
{
  "message": "Unauthenticated."
}
```
{% endtab %}
{% endtabs %}
