# Clear Cart Items v2.0Beta

The Clear Cart Items endpoint removes all items along with any specified options from the cart. The items will immediately be removed from the cart.

# Request

DELETE /v2.0/customers/{profileKey}/carts/{cartId}/items

# Authorization

An OAuth 2.0 Bearer token with the Cart.Write scope is required. For more information, see Authentication.

# Path Parameters

A list of the supported path parameters is described below.

Name Required Type Description
profileKey true guid The profile key for the customer.
cartId true guid The cart id for the cart.

# Response

200
OK
Returns an ApiResponse envelope.

# Response Body

The endpoint returns our ApiResponse envelope.

# Sample

{
    "message": "The operation succeeded!",
    "notifications": [
        {
            "severity": "Success",
            "text": "All items have been removed from the cart.",
            "code": null,
            "additionalData": null
        }
    ]
}

# Errors

The standard error responses apply.

401
Unauthorized
When authentication fails.
403
Forbidden
When authorisation fails.
404
Not Found
When the cart cannot be found.