Skip to content

Commit

Permalink
Refine highlevel delete code comments (#1778)
Browse files Browse the repository at this point in the history
Signed-off-by: zhenshan.cao <[email protected]>
  • Loading branch information
czs007 authored Nov 10, 2023
1 parent 3e494ce commit 3f68f7d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pymilvus/milvus_client/milvus_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ def delete(
pks: Union[list, str, int],
timeout: Optional[float] = None,
**kwargs,
) -> List[Union[str, int]]:
):
"""Delete entries in the collection by their pk.
Delete all the entries based on the pk. If unsure of pk you can first query the collection
Expand All @@ -385,8 +385,8 @@ def delete(
This change is due to the large amount of data involved.
The delete interface no longer returns any results.
If no exceptions are thrown, it indicates a successful deletion.
However, for backward compatibility, If the primary_keys returned from Milvus is not empty
the list of primary keys is still returned.
However, for backward compatibility, If the primary_keys returned from old
Milvus(previous 2.3.2) is not empty, the list of primary keys is still returned.
Args:
pks (list, str, int): The pk's to delete. Depending on pk_field type it can be int
Expand Down

0 comments on commit 3f68f7d

Please sign in to comment.