Skip to content

Commit 738f5a4

Browse files
committed
feat(collections): add collection truncation option
1 parent 89c19be commit 738f5a4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/typesense/types/document.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -830,11 +830,13 @@ class DeleteQueryParameters(typing.TypedDict):
830830
Parameters for deleting documents.
831831
832832
Attributes:
833+
truncate (str): Truncate the collection, keeping just the schema.
833834
filter_by (str): Filter to apply to documents.
834835
batch_size (int): Batch size for deleting documents.
835836
ignore_not_found (bool): Ignore not found documents.
836837
"""
837838

839+
truncate: typing.NotRequired[bool]
838840
filter_by: str
839841
batch_size: typing.NotRequired[int]
840842
ignore_not_found: typing.NotRequired[bool]

0 commit comments

Comments
 (0)