Skip to content

Commit 83fcf08

Browse files
authored
update attribute used in delete_collection_item docstring (#2659)
1 parent 0c98fbd commit 83fcf08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/huggingface_hub/hf_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8266,7 +8266,7 @@ def delete_collection_item(
82668266
Slug of the collection to update. Example: `"TheBloke/recent-models-64f9a55bb3115b4f513ec026"`.
82678267
item_object_id (`str`):
82688268
ID of the item in the collection. This is not the id of the item on the Hub (repo_id or paper id).
8269-
It must be retrieved from a [`CollectionItem`] object. Example: `collection.items[0]._id`.
8269+
It must be retrieved from a [`CollectionItem`] object. Example: `collection.items[0].item_object_id`.
82708270
missing_ok (`bool`, *optional*):
82718271
If `True`, do not raise an error if item doesn't exists.
82728272
token (Union[bool, str, None], optional):

0 commit comments

Comments
 (0)