Delete a fact
Delete one fact from your own memory or an app user’s memory.
DELETE
https://api.atlaso.ai/v1
/
memory
/
facts
/
{fact_id}
Delete a fact
curl --request DELETE \
--url https://api.atlaso.ai/v1/memory/facts/{fact_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.atlaso.ai/v1/memory/facts/{fact_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.atlaso.ai/v1/memory/facts/{fact_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.atlaso.ai/v1/memory/facts/{fact_id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.atlaso.ai/v1/memory/facts/{fact_id}")
.header("Authorization", "Bearer <token>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.atlaso.ai/v1/memory/facts/{fact_id}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.DeleteAsync(request);
Console.WriteLine("{0}", response.Content);
{
"id": "0b6f3c1e-2a4d-4e8f-9c1b-5d7e6f8a9b0c",
"object": "memory.fact.deleted",
"deleted": true,
"counts": {
"facts": 1,
"embeddings": 1,
"search_rows": 1,
"learned_source_links": 0
},
"remaining": 0,
"deleted_at": "2026-11-17T10:00:00+00:00"
}{
"error": {
"message": "This key keeps memory for each user of your app. Use atlaso.for_user(id).memory.",
"type": "invalid_request_error",
"param": "x-atlaso-user",
"code": "memory_scope_per_user",
"doc_url": "https://docs.atlaso.ai/gateway/errors#memory_scope_per_user"
}
}{
"error": {
"message": "Your Atlaso API key is missing, invalid or revoked. Set Authorization: Bearer to an active key from the API keys page.",
"type": "authentication_error",
"param": null,
"code": "invalid_api_key",
"doc_url": "https://docs.atlaso.ai/gateway/errors#invalid_api_key"
}
}{
"error": {
"message": "This key uses your own memory. Use atlaso.memory, without a user id.",
"type": "permission_error",
"param": "x-atlaso-user",
"code": "memory_scope_owner",
"doc_url": "https://docs.atlaso.ai/gateway/errors#memory_scope_owner"
}
}{
"error": {
"message": "The fact was not found.",
"type": "not_found_error",
"param": "fact_id",
"code": "fact_not_found",
"doc_url": "https://docs.atlaso.ai/gateway/errors#fact_not_found"
}
}{
"error": {
"message": "Too many requests. Try again shortly.",
"type": "rate_limit_error",
"param": null,
"code": "rate_limited",
"doc_url": "https://docs.atlaso.ai/gateway/errors#rate_limited"
}
}{
"error": {
"message": "A deletion for this user has not finished yet. Retry the same request in a few seconds; retrying is safe.",
"type": "api_error",
"param": null,
"code": "delete_pending",
"doc_url": "https://docs.atlaso.ai/gateway/errors#delete_pending"
}
}A key set to memory for each user of your app must send the user’s id in
x-atlaso-user; without it the call gets 400 memory_scope_per_user. A key
whose Memory for is Me reaches your own memory and sends no
x-atlaso-user; with it, the call gets 403 memory_scope_owner.
The deletion cannot be undone. See Memory API.Authorizations
Headers
Your app user's id, set by your server. A key set to memory for each user of your app must send it on every call; without it the call gets 400 memory_scope_per_user, and an empty value gets 400 missing_user_id. A key whose Memory for is Me reaches your own memory and must not send it: with it, the call gets 403 memory_scope_owner and nothing is read or written. 1 to 256 printable characters, not only spaces, with no API key or token in it. Send it once. Used exactly as sent.
Required string length:
1 - 256Delete a fact
curl --request DELETE \
--url https://api.atlaso.ai/v1/memory/facts/{fact_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.atlaso.ai/v1/memory/facts/{fact_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.atlaso.ai/v1/memory/facts/{fact_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.atlaso.ai/v1/memory/facts/{fact_id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.atlaso.ai/v1/memory/facts/{fact_id}")
.header("Authorization", "Bearer <token>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.atlaso.ai/v1/memory/facts/{fact_id}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.DeleteAsync(request);
Console.WriteLine("{0}", response.Content);
{
"id": "0b6f3c1e-2a4d-4e8f-9c1b-5d7e6f8a9b0c",
"object": "memory.fact.deleted",
"deleted": true,
"counts": {
"facts": 1,
"embeddings": 1,
"search_rows": 1,
"learned_source_links": 0
},
"remaining": 0,
"deleted_at": "2026-11-17T10:00:00+00:00"
}{
"error": {
"message": "This key keeps memory for each user of your app. Use atlaso.for_user(id).memory.",
"type": "invalid_request_error",
"param": "x-atlaso-user",
"code": "memory_scope_per_user",
"doc_url": "https://docs.atlaso.ai/gateway/errors#memory_scope_per_user"
}
}{
"error": {
"message": "Your Atlaso API key is missing, invalid or revoked. Set Authorization: Bearer to an active key from the API keys page.",
"type": "authentication_error",
"param": null,
"code": "invalid_api_key",
"doc_url": "https://docs.atlaso.ai/gateway/errors#invalid_api_key"
}
}{
"error": {
"message": "This key uses your own memory. Use atlaso.memory, without a user id.",
"type": "permission_error",
"param": "x-atlaso-user",
"code": "memory_scope_owner",
"doc_url": "https://docs.atlaso.ai/gateway/errors#memory_scope_owner"
}
}{
"error": {
"message": "The fact was not found.",
"type": "not_found_error",
"param": "fact_id",
"code": "fact_not_found",
"doc_url": "https://docs.atlaso.ai/gateway/errors#fact_not_found"
}
}{
"error": {
"message": "Too many requests. Try again shortly.",
"type": "rate_limit_error",
"param": null,
"code": "rate_limited",
"doc_url": "https://docs.atlaso.ai/gateway/errors#rate_limited"
}
}{
"error": {
"message": "A deletion for this user has not finished yet. Retry the same request in a few seconds; retrying is safe.",
"type": "api_error",
"param": null,
"code": "delete_pending",
"doc_url": "https://docs.atlaso.ai/gateway/errors#delete_pending"
}
}