You are reading the documentation for SDK v2, which is no longer the latest version. Switch to current
deleteCart
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: SetupContext,
params: DeleteCartParams,
customQuery?: CustomQuery,
responseOptions?: ResponseOptions
): Promise<DeleteCartResponse>;Parameters
| Name | Required | Type | Description |
|---|---|---|---|
context | Required | SetupContext | Automatically injected context. Refer to SetupContext |
params | Required | DeleteCartParams | Cart information |
customQuery | Optional | CustomQuery | Custom queries included in the request |
responseOptions | Optional | ResponseOptions |
Returns
Cart data