Uygulamayı aç
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
FieldTypeDescription
idreqstringChat session id (e.g. `chs_*`).
chunk_idreqstringMemory chunk id (e.g. `mem_*`).

Responses

204Forgotten (no content)
401Unauthenticated
Body
FieldTypeDescription
errorreqobject
error.codereqstring
error.messagereqstring
404Session or chunk not found
Body
FieldTypeDescription
errorreqobject
error.codereqstring
error.messagereqstring

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>",
)