Moonborn — API · chat
Forget a specific memory chunk (privacy / right-to-be-forgotten)
DELETE/v1/chat/sessions/{id}/memory/{chunk_id}scope · Bearer (API key or session JWT)
Path parameters
| Field | Type | Description |
|---|---|---|
| idreq | string | Chat session id (e.g. `chs_*`). |
| chunk_idreq | string | Memory chunk id (e.g. `mem_*`). |
Responses
204Forgotten (no content)
401Unauthenticated
Body
| Field | Type | Description |
|---|---|---|
| errorreq | object | |
| error.codereq | string | |
| error.messagereq | string |
404Session or chunk not found
Body
| Field | Type | Description |
|---|---|---|
| errorreq | object | |
| error.codereq | string | |
| error.messagereq | string |
Examples
cURL
curl -X DELETE https://api.moonborn.co/v1/chat/sessions/<id>/memory/<chunk_id> \ -H "Authorization: Bearer $MOONBORN_API_KEY"
TypeScript
import Moonborn from '@moonborn/sdk';
const client = new Moonborn({ apiKey: process.env.MOONBORN_API_KEY });
const result = await client.chat.forgetChatMemoryChunk({
id: '<id>',
chunk_id: '<chunk_id>',
});Python
import os
from moonborn import Moonborn
client = Moonborn(api_key=os.environ["MOONBORN_API_KEY"])
result = client.chat.forget_chat_memory_chunk(
id="<id>",
chunk_id="<chunk_id>",
)