Delete All Wishlist Items
About
The createDeleteAllWishlists mutation removes all items from the authenticated customer's wishlist at once. Use this mutation to:
- Clear the entire wishlist
- Implement a "Clear All" button on the wishlist page
- Reset the customer's wishlist state
Note: This is an authenticated-only operation. The customer is auto-detected from the Bearer token.
Authentication
This mutation requires customer authentication:
- Authenticated customers: Provide a valid customer authentication token in the
Authorizationheader. Obtain this token via the Customer Login API.
Authorization: Bearer <accessToken>Arguments
| Argument | Type | Description |
|---|---|---|
clientMutationId | String | Optional client-side mutation identifier for tracking. |
Note: No additional input is required. Pass an empty input
{}.
Possible Returns
| Field | Type | Description |
|---|---|---|
deleteAllWishlists.message | String! | Success message confirming deletion. |
deleteAllWishlists.deletedCount | Int! | Number of wishlist items that were removed. |

