Actions37
- 对话 Actions
- 知识库 Actions
- 集合 Actions
- 数据 Actions
- 应用 Actions
数据 → 删除单条数据
AI-generatedSummary
Deletes a single data entry from a FastGPT knowledge-base collection by sending a DELETE request to /core/dataset/data/delete with the data ID as a query parameter.
Inputs
- dataKnowledgeId (required) — Knowledge base (dataset) to work in, chosen from a dropdown loaded from /core/dataset/list (only items of type 'dataset'). Sent in the request body as datasetId.
- dataCollectionId (required) — ID of the collection inside the knowledge base that holds the data. Sent in the request body as collectionId.
- dataIdToDelete (required) — ID of the data entry to delete. Sent as the query parameter 'id'.
- requestOptions — Optional node settings: batching (items per batch, interval in ms), ignore SSL issues, proxy, and timeout (default 10000 ms).
Output shape
The parsed JSON response from the FastGPT API for the delete call, one result per input item.
The response is checked after it arrives. If the HTTP status is 4xx/5xx, or the response body's code field is not 200, the node throws a NodeApiError with the API's message. The exact success body is not defined in the node source.
Examples
Example 1: Remove an outdated FAQ entry from a knowledge base after finding its ID in a previous step.
Select the knowledge base, set 集合ID to the collection ID, and set 数据ID to an expression such as {{$json.dataId}}.