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_bodyDelete memories
Delete memories by ID or by filter conditions.
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- Single delete: provide
memory_idonly (no other fields allowed) - Batch delete: provide at least one of
user_id/group_id(optionally withsession_id,sender_id)
Authorizations
Bearer authentication header of the form Bearer 'api_key', obtain your API key from everos.evermind.ai.
Body
MemCell ID for single delete. When provided, all filter fields (user_id, group_id, session_id, sender_id) must be omitted.
"67c8a1b2f3e4d5c6a7b8c9d0"
User ID scope for batch delete. Three-state: "__all__" (skip) | null/"" (match empty) | value (exact match).
"user_123"
Group ID scope for batch delete. Three-state: "__all__" (skip) | null/"" (match empty) | value (exact match).
"group_456"
Session filter (batch delete only). Three-state: "__all__" (skip) | null/"" (match empty) | value (exact match).
"sess_abc"
Sender filter, matches participants array (batch delete only). Three-state: "__all__" (skip) | null/"" (match empty) | value (exact match).
"sender_001"
Response
Memories deleted successfully (no content)
Was this page helpful?

