From 8b6dcfb6ebcf8b3d0641f8f0a61c0ada025f0ee4 Mon Sep 17 00:00:00 2001 From: yangdx Date: Tue, 24 Jun 2025 11:26:38 +0800 Subject: [PATCH] Pls do not use /delete_document API endpoint --- lightrag/api/routers/document_routes.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lightrag/api/routers/document_routes.py b/lightrag/api/routers/document_routes.py index 01a0d00f..06862fe6 100644 --- a/lightrag/api/routers/document_routes.py +++ b/lightrag/api/routers/document_routes.py @@ -1376,10 +1376,14 @@ def create_document_routes( dependencies=[Depends(combined_auth)], summary="Delete a document and all its associated data by its ID.", ) + + # TODO This method needs to be modified to be asynchronous (please do not use) async def delete_document( delete_request: DeleteDocRequest, ) -> DeleteDocByIdResponse: """ + This method needs to be modified to be asynchronous (please do not use) + Deletes a specific document and all its associated data, including its status, text chunks, vector embeddings, and any related graph data. It is disabled when llm cache for entity extraction is disabled.