Skip to main content
DELETE
/
v4
/
memories
Forget a memory
const options = {
  method: 'DELETE',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: JSON.stringify({
    containerTag: 'user_123',
    id: 'mem_abc123',
    content: 'John prefers dark mode',
    reason: 'outdated information'
  })
};

fetch('https://api.supermemory.ai/v4/memories', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "id": "mem_abc123",
  "forgotten": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
containerTag
string
required

Container tag / space identifier. Required to scope the operation.

Example:

"user_123"

id
string

ID of the memory entry to operate on

Example:

"mem_abc123"

content
string

Exact content match of the memory entry to operate on. Use this when you don't have the ID.

Example:

"John prefers dark mode"

reason
string

Optional reason for forgetting this memory

Example:

"outdated information"

Response

Memory forgotten successfully

Response after forgetting a memory

id
string
required

ID of the memory that was forgotten

Example:

"mem_abc123"

forgotten
boolean
required

Indicates the memory was successfully forgotten

Example:

true