Forget a memory
client.memories.forget(MemoryForgetParams { containerTag, id, content, reason } body, RequestOptionsoptions?): MemoryForgetResponse { id, forgotten }
DELETE/v4/memories
Forget (soft delete) a memory entry. The memory is marked as forgotten but not permanently deleted.
Forget a memory
import Supermemory from 'supermemory';
const client = new Supermemory({
apiKey: process.env['SUPERMEMORY_API_KEY'], // This is the default and can be omitted
});
const response = await client.memories.forget({ containerTag: 'user_123' });
console.log(response.id);{
"id": "mem_abc123",
"forgotten": true
}Returns Examples
{
"id": "mem_abc123",
"forgotten": true
}