Home > @vsf-enterprise/commercetools-api > deleteCart

# deleteCart() function

Endpoint for deleting cart of the currently logged user based on parameters. By default, it uses the deleteCartDefaultQuery GraphQL query

Signature:

export declare function deleteCart(context: Context, params: DeleteCartParams, customQuery?: CustomQuery): Promise<DeleteCartResponse>;

# Parameters

Parameter Type Description
context Context Automatically injected context. Refer to Context
params DeleteCartParams Cart information
customQuery CustomQuery Custom queries included in the request

Returns:

Promise<DeleteCartResponse>

Cart data