LightRAG icon

LightRAG

Query and manage LightRAG with optional live progress in n8n Chat

Delete Documents

AI-generated

Summary

Deletes documents from LightRAG using the supplied document IDs. Send a JSON body with a non-empty doc_ids array of document ID strings; by default, the node uses the complete current input item as the body.

Inputs

  • Request Body (required) — JSON object containing doc_ids, a non-empty array of document ID strings. Defaults to the current input item; IDs are trimmed before sending.

Output shape

One or more items containing LightRAG's response.

Sends a DELETE request to documents/delete_document. Array responses are returned as separate items; a single object response is returned as one item. Each output is paired with its input item.

Links

Discussion