Home > doofinder > StatsClient > clearCart

StatsClient.clearCart() method

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Clears the cart in the current session.

Signature:

clearCart(params: StatsParams): Promise<Response>;

Parameters

Parameter Type Description
params StatsParams An options object. See StatsParams.

Returns:

Promise<Response>

A promise to be fullfilled with the response or rejected with a ClientResponseError.