---
title: "Delete the shopping cart"
method: DELETE
path: "/api/v1/carts/{customerId}"
tags: ["cart"]
---

# Delete the shopping cart

`DELETE /api/v1/carts/{customerId}`

Deletes the shopping cart of given customer

## Path parameters

- `customerId` string, required

## Response `204`

successful operation

## Other responses

- `404` — Given customer ID doesn't exist

---

[API](https://skmtc.dev/packtpublishing/apis/sample-ecommerce-app.md) · [All operations](https://skmtc.dev/packtpublishing/apis/sample-ecommerce-app/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/packtpublishing/sample-ecommerce-app/revisions/51a26ae44206/schema)
