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 (201 Created)
| Field | Type | Description |
|---|---|---|
message | string | All wishlist items have been removed successfully. |
deletedCount | integer | How many rows were removed. 0 when the wishlist was already empty. |
Behaviour
- Clears only the authenticated customer's rows, and only on the current channel — items saved on another channel survive.
- Repeating the call is safe; the second one answers
201withdeletedCount: 0. - The message is the same whether rows were removed or not, so read
deletedCountto know what happened.
Use Cases
- "Clear wishlist" button — one call empties the list, and
deletedCounttells the UI how many rows to drop without a re-fetch. - Reset after a bulk move to cart — Move to Cart removes rows one at a time; this clears whatever remains in a single request.
Best Practices
- Confirm in the UI first — the call is irreversible and takes no ID, so a mis-tap wipes the whole list.
- Read
deletedCount, notmessage— the message reads the same on an empty wishlist. - Remember the channel scope — a multi-channel storefront needs one call per channel to clear everything.
Related Resources
- Get Wishlist Items — the customer's saved products
- Delete Wishlist Item — remove one saved row by its id

