Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Update api_md document/rm (#894)

GYH1e5c5abe5871
diff --git a/docs/references/api.md b/docs/references/api.md
index b0012531ba..974c87d4d0 100644
--- a/docs/references/api.md
+++ b/docs/references/api.md
@@ -444,3 +444,27 @@ Get document list based on the knowledge base name and corresponding parameters.
}
```
+
+## Delete document
+
+Delete document by document id or document name.
+### Path: /api/document/rm/
+### Method: POST
+
+### Parameter:
+
+| Name | Type | Optional | Description |
+|-------------|--------|----------|----------------------------|
+| `doc_names` | List | Yes | The list of document name. |
+| `doc_ids` | List | Yes | The list of document id. |
+
+
+### Response
+```json
+{
+ "data": true,
+ "retcode": 0,
+ "retmsg": "success"
+}
+
+```