Remove an Item

remove by name
curl -X DELETE -H "Content-Type: application/json" \
-d '{"item_name": "Golden Retriever",
"section": "Search Suggestions"}' \
-u "[your token]:" "[your API key]"
remove by ID
curl -X DELETE -H "Content-Type: application/json" -d '{"item_name":"power drill","section":"products_autocomplete"}' \
-u "[your token]:" "[your API key]"

The above command returns a 204 Success response on success.

To remove an item from your index (if, for instance, a product has been discontinued), issue a DELETE /item call. Note: this will remove all meta-information such as keywords we currently have on the item. Because 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 an item.

HTTP Request#

DELETE[your API key]

JSON Parameters#

item_nameYes *The name of the item, as it will appear in the results
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.
idYes *An arbitrary ID you optionally specified when adding the item. If supplied, you don't need to pass in item_name.

* If you included an id along with the item that was previously added, you will need to provide the id when issuing the DELETE /item call. Otherwise, you can just specify item_name to delete the item.