Delete All Wishlist Items
Remove every item from the authenticated customer's wishlist in a single request.
Endpoint
POST /api/shop/delete-all-wishlistsRequest Headers
| Header | Required | Description |
|---|---|---|
Content-Type | Yes | application/json |
X-STOREFRONT-KEY | Yes | Your storefront API key |
Authorization | Yes | Customer Bearer token (Bearer <accessToken>) |
Request Body
No fields are required. Send an empty JSON object:
json
{}Response Fields (200 OK)
| Field | Type | Description |
|---|---|---|
message | string | Confirmation message |
deletedCount | integer | Number of wishlist items removed |
Use Cases
- "Clear wishlist" action on the wishlist page
- Reset a customer's saved products in one call
Notes
- Only the authenticated customer's items are removed.
- Returns
deletedCount: 0when the wishlist is already empty.

