Home > @vsf-enterprise/epcc-api > CartEndpoints > removeCartItems
# CartEndpoints.removeCartItems() method
Removes items from the cart. Returns the remaining items.
Signature:
removeCartItems(context: ElasticPathIntegrationContext, params: RemoveCartItemsParams): Promise<CartItem[]>;
# Parameters
Parameter | Type | Description |
---|---|---|
context | ElasticPathIntegrationContext | An auto-generated value prepended to the method as a first parameter. |
params | RemoveCartItemsParams | An object which contains necessary properties for removing cart items. If no cartItemId is provided it clears the cart. |
Returns:
Promise<CartItem[]>