Remove an Item
- Shell
- JavaScript
- Ruby
- Python
- PHP
- Java
- C#
remove by name
remove by ID
remove by name
remove by ID
remove by name
remove by ID
remove by name
remove by name
remove by name
remove by name
info
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 RequestDELETE https://ac.cnstrc.com/v1/item?key=[your API key]
#
JSON ParametersParameter | Required? | Description |
---|---|---|
item_name | Yes * | The name of the item, as it will appear in the results |
section | Yes | Your 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. |
id | Yes * | 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.