Batch Remove Items

curl -X DELETE -H "Content-Type: application/json" \
-d '{"items": [ {"item_name": "Labradoodle"}, {"id": "D26"} ],
"section":"Products"}' \
-u "[your token]:" "https://ac.cnstrc.com/v1/batch_items?key=[your API key]"
info

The above command returns a 204 Success response on success.

To remove multiple items from your index as a batch, use the DELETE /batch_items call. Note: this will remove all meta-information such as keywords we currently store on the items.

The items parameter is required and is a list of items with the same attributes as defined in the Remove an Item resource. Because your autosuggest and search results can have multiple sections (i.e. products, categories, and search suggestions), you must specify the name of the section from which you're removing the items.

There is a limit of 1,000 items per batch request.

HTTP Request#

DELETE https://ac.cnstrc.com/v1/batch_items?key=[your API key]

JSON Parameters#

ParameterRequired?Description
itemsYesA list of items with the same attributes as defined in the Remove an Item resource.
sectionYesYour autosuggest and search results can have multiple sections like "Products" and "Search Suggestions". This indicates which section this item is for. See your dashboard for the section names to use.