recombee_api_client.api_requests.delete_item module

class recombee_api_client.api_requests.delete_item.DeleteItem(item_id)

Bases: recombee_api_client.api_requests.request.Request

Deletes an item of given itemId from the catalog.

If there are any purchases, ratings, bookmarks, cart additions or detail views of the item present in the database, they will be deleted in cascade as well. Also, if the item is present in some series, it will be removed from all the series where present.

If an item becomes obsolete/no longer available, it is often meaningful to keep it in the catalog (along with all the interaction data, which are very useful), and only exclude the item from recommendations. In such a case, use [ReQL filter](https://docs.recombee.com/reql.html) instead of deleting the item completely.

Required parameters:

Parameters

item_id – ID of the item to be deleted.

get_body_parameters()

Values of body parameters as a dictionary (name of parameter: value of the parameter).

get_query_parameters()

Values of query parameters as a dictionary (name of parameter: value of the parameter).