Delete an app user's memory
Delete everything Atlaso keeps about one app user.
DELETE
https://api.atlaso.ai/v1
/
memory
/
user
Delete an app user's memory
curl --request DELETE \
--url https://api.atlaso.ai/v1/memory/user \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.atlaso.ai/v1/memory/user"
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/user', 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/user"
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/user")
.header("Authorization", "Bearer <token>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.atlaso.ai/v1/memory/user");
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);
{
"object": "memory.app_user.deleted",
"app_user": "3f9a1c7e5b2d",
"deleted": true,
"facts_deleted": 3,
"counts": {
"facts": 3,
"embeddings": 3,
"search_rows": 3,
"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": "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"
}
}This works only with a key set to memory for each user of your app, and the
user is named by
x-atlaso-user. A key whose Memory for is Me gets 403
owner_erase_dashboard_only and nothing is deleted: use Delete all memories
on the dashboard instead.
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 - 256Response
The deletion receipt.
Delete an app user's memory
curl --request DELETE \
--url https://api.atlaso.ai/v1/memory/user \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.atlaso.ai/v1/memory/user"
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/user', 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/user"
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/user")
.header("Authorization", "Bearer <token>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.atlaso.ai/v1/memory/user");
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);
{
"object": "memory.app_user.deleted",
"app_user": "3f9a1c7e5b2d",
"deleted": true,
"facts_deleted": 3,
"counts": {
"facts": 3,
"embeddings": 3,
"search_rows": 3,
"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": "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"
}
}