Skip to main content
Permanently deletes a memory belonging to the authenticated user.
Authorization
string
required
Bearer token obtained from the authenticate endpoint.
memory_id
string
required
UUID of the memory to delete.

Response

message
string
Confirmation message: "User memory deleted successfully".
curl -X DELETE https://api.trellis.sh/v1/user-memories/a1b2c3d4-e5f6-7890-abcd-ef1234567890 \
  -H "Authorization: Bearer YOUR_TOKEN"
import requests

memory_id = "a1b2c3d4-e5f6-7890-abcd-ef1234567890"

response = requests.delete(
    f"https://api.trellis.sh/v1/user-memories/{memory_id}",
    headers={"Authorization": "Bearer YOUR_TOKEN"},
)
const memoryId = "a1b2c3d4-e5f6-7890-abcd-ef1234567890";

await fetch(`https://api.trellis.sh/v1/user-memories/${memoryId}`, {
  method: "DELETE",
  headers: { Authorization: "Bearer YOUR_TOKEN" },
});
{
  "message": "User memory deleted successfully"
}
{
  "detail": "Missing Authorization header"
}
{
  "detail": "User memory not found"
}