You are reading the documentation for SDK v2, which is no longer the latest version. Switch to current
deleteCartMutation
Portion of the GraphQL query used in the deleteCart API endpoint
deleteCartMutation = "\n mutation deleteCart(
$id: String!,
$version: Long!,
$locale: Locale!,
$acceptLanguage: [Locale!],
$currency: Currency!
) {\n cart: deleteMyCart(id: $id,
version: $version) {\n ...DefaultCart\n }\n }\n"