Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyaspimpalgaonkar committed Oct 22, 2024
1 parent 76afe2a commit 979e78e
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions py/sdk/mixins/kg.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,11 @@ async def delete_graph_for_collection(
NOTE: Setting this flag to true will delete entities and triples for documents that are shared across multiple collections. Do not set this flag unless you are absolutely sure that you want to delete the entities and triples for all documents in the collection.
"""
return await self._make_request( # type: ignore
"DELETE",
f"delete_graph_for_collection/{collection_id}",
params={"cascade": cascade},
)

data = {
"collection_id": str(collection_id),
"cascade": cascade,
}

return await self._make_request("DELETE", "delete_graph_for_collection", json=data) # type: ignore

0 comments on commit 979e78e

Please sign in to comment.