Package recombee_api_client :: Package api_requests :: Module delete_item :: Class DeleteItem
[hide private]
[frames] | no frames]

Class DeleteItem

source code

     object --+    
              |    
request.Request --+
                  |
                 DeleteItem

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.

Instance Methods [hide private]
 
__init__(self, item_id)
Required parameters:
source code
 
get_body_parameters(self)
Values of body parameters as a dictionary (name of parameter: value of the parameter).
source code
 
get_query_parameters(self)
Values of query parameters as a dictionary (name of parameter: value of the parameter).
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]

Inherited from request.Request: quote_path_param

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, item_id)
(Constructor)

source code 

Required parameters:

Parameters:
  • item_id - ID of the item to be deleted.
Overrides: object.__init__