You can delete a cart, including the items, name, description, and remove all associations.
DELETE Delete cart by ID
|Required||The unique identifier of the cart that you want to delete.|
|Required||The Bearer token required to get access to the API.|
curl -X DELETE https://useast.api.elasticpath.com/v2/carts/:cartID \ -H "Authorization: Bearer XXXX" \ -H "Content-Type: application/json" \
const reference = "XXXX"; // Where `EPCC` is an authenticated client await EPCC.Cart(reference).Delete();
204 No Content