younifyd
Menu

Delete Prices

Remove prices from the search index — one price, a variant's prices, or every price of a product.

Use it in a workflow

  1. Add a step and choose the Search connector.
  2. Pick the Delete Prices action (under database).
  3. Fill in the fields below, then reference the result from later steps as {{deletePrices.response.data}}.

Fields

indexSlugstringrequired

The search index whose prices to delete, by slug. Can also be a variable, e.g. {{variables.indexSlug}}.

pricesstringrequired

A JSON array, up to 1,000 per step. key is required; unitKey, segment and priceType narrow it. Like [{"key":"p1","segment":"uk","priceType":"sale"},{"key":"p2"}]

Examples

End a sale and unprice a product

p1's UK sale ends (its list price stays); every price of p2 goes

json
{
  "indexSlug": "products",
  "prices": "[{\"key\":\"p1\",\"segment\":\"uk\",\"priceType\":\"sale\"},{\"key\":\"p2\"}]"
}

Need more? See the Search guide for connection setup and behaviour shared by every action.