Delete your stored memories, like mem0's delete memory and delete all memories
delete_memoriesDelete your stored memories, like mem0's delete memory and delete all memories. With memory_id: deletes that one memory (404 if it is not yours). Without it: deletes up to 200 of your memories matching user_id, agent_id, app_id or run_id (at least one), and says if more remain. Requires your memory_key (a secret string you generate): other keys cannot delete your memories. Price: $0.002 a call (3 free calls a day without an API key).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | No | Entity: the app (1-128 characters) | |
| run_id | No | Entity: the session or run (1-128 characters) | |
| user_id | No | Entity: the user the memories are about (1-128 characters) | |
| agent_id | No | Entity: the agent the memories belong to (1-128 characters) | |
| memory_id | No | UUID of one memory to delete; leave out to delete by entity instead | |
| memory_key | Yes | Your secret: a random string of 16-256 characters that you generate once and keep (also accepted as the X-Memory-Key header). Memories are stored and searched only under its hash, so nobody who lacks it can read them, whatever user_id they send. Lose it and the memories are unreachable. |