Actions37
- 对话 Actions
- 知识库 Actions
- 集合 Actions
- 数据 Actions
- 应用 Actions
对话 → 删除对话记录
AI-generatedSummary
Deletes a single message record from a FastGPT chat conversation by sending a DELETE request to /core/chat/record/delete with the app ID, chat ID, and record (content) ID as query parameters.
Inputs
- 应用ID (required) — FastGPT App ID; sent as query parameter
appId. - 历史记录ID (required) — The conversation's chatId; sent as query parameter
chatId. - 记录ID (required) — ID (contentId) of the specific record to delete within that chat; sent as query parameter
contentId. - Request Options — Optional node settings: batching (items per batch, interval ms), ignore SSL issues, proxy URL, and timeout (default 10000 ms).
Output shape
The parsed JSON response body from the FastGPT API for each input item (typically a code/message/data envelope).
Errors are thrown as NodeApiError if the HTTP status is 4xx/5xx or if the response body's
codeis present and not 200 (the message comes from the body'smessagefield). HTTP status errors are otherwise ignored by the request defaults, so this check is what surfaces failures. Requires the fastGPTApi credential, which supplies the base URL.
Examples
Example 1: Remove a single bad or sensitive message from a stored conversation.
Resource: 对话; Operation: 删除对话记录; 应用ID = your app ID; 历史记录ID = the chatId; 记录ID = the message's contentId (e.g. from 获取对话记录列表).
Example 2: Delete records dynamically for each incoming item in a cleanup workflow.
Set the three fields with expressions such as {{$json.appId}}, {{$json.chatId}}, {{$json.contentId}}; optionally enable Batching to throttle requests.