DELETE
/
v3
/
memories
/
bulk
Bulk delete memories
const url = 'https://api.supermemory.ai/v3/memories/bulk';
const options = {
  method: 'DELETE',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"ids":["acxV5LHMEsG2hMSNb4umbn","bxcV5LHMEsG2hMSNb4umbn"]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
{
  "success": true,
  "deletedCount": 2,
  "errors": [
    {
      "id": "<string>",
      "error": "<string>"
    }
  ],
  "containerTags": [
    "user_123",
    "project_123"
  ]
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Request body for bulk deleting memories by IDs or container tags

Response

200
application/json

Bulk deletion completed successfully

Response for bulk memory deletion