Skip to main content
POST
/
api
/
v1
/
memories
/
delete
Python
from everos_cloud import EverOS

client = EverOS()
memories = client.v1.memories

# Delete by memory_id
memories.delete(memory_id="<string>")

# Or delete all by user_id
memories.delete(user_id="<string>")
curl --request POST \
--url 'https://api.evermind.ai/api/v1/memories/delete' \
--header 'Authorization: Bearer <api_key>' \
--header 'Content-Type: application/json' \
--data '{}'
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({memory_id: '67c8a1b2f3e4d5c6a7b8c9d0'})
};

fetch('https://api.evermind.ai/api/v1/memories/delete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.evermind.ai/api/v1/memories/delete",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'memory_id' => '67c8a1b2f3e4d5c6a7b8c9d0'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api.evermind.ai/api/v1/memories/delete"

payload := strings.NewReader("{\n \"memory_id\": \"67c8a1b2f3e4d5c6a7b8c9d0\"\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api.evermind.ai/api/v1/memories/delete")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"memory_id\": \"67c8a1b2f3e4d5c6a7b8c9d0\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.evermind.ai/api/v1/memories/delete")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"memory_id\": \"67c8a1b2f3e4d5c6a7b8c9d0\"\n}"

response = http.request(request)
puts response.read_body
Two mutually exclusive modes:
  • Single delete: provide memory_id only (no other fields allowed)
  • Batch delete: provide at least one of user_id / group_id (optionally with session_id, sender_id)
Returns 204 No Content on success.

Authorizations

Authorization
string
header
default:Bearer <api_key>
required

Bearer authentication header of the form Bearer 'api_key', obtain your API key from everos.evermind.ai.

Body

application/json
memory_id
string | null

MemCell ID for single delete. When provided, all filter fields (user_id, group_id, session_id, sender_id) must be omitted.

Example:

"67c8a1b2f3e4d5c6a7b8c9d0"

user_id
string | null
default:__all__

User ID scope for batch delete. Three-state: "__all__" (skip) | null/"" (match empty) | value (exact match).

Example:

"user_123"

group_id
string | null
default:__all__

Group ID scope for batch delete. Three-state: "__all__" (skip) | null/"" (match empty) | value (exact match).

Example:

"group_456"

session_id
string | null
default:__all__

Session filter (batch delete only). Three-state: "__all__" (skip) | null/"" (match empty) | value (exact match).

Example:

"sess_abc"

sender_id
string | null
default:__all__

Sender filter, matches participants array (batch delete only). Three-state: "__all__" (skip) | null/"" (match empty) | value (exact match).

Example:

"sender_001"

Response

Memories deleted successfully (no content)