Skip to main content
DELETE
/
api
/
v2
/
agents
/
{agent_id}
/
memories
/
{memory_id}
curl -X DELETE \
  "http://localhost:8000/api/v2/agents/my-agent/memories/b7c3cf31-e537-49f1-abc4-c50ac6adeac5" \
  -H "X-Session-Token: your_session_token"
{
  "agent_id": "my-agent",
  "memory_id": "b7c3cf31-e537-49f1-abc4-c50ac6adeac5",
  "namespace": "memanto_agent_my-agent",
  "status": "deleted"
}

Overview

Deletes one memory from the agent’s Moorcheh namespace, scoped by the active session. The session must belong to the agent named in the path.

Authentication

API clients do not send an API key or Authorization header.
X-Session-Token
string
required
Session token from Activate Agent. Must match agent_id.

Path Parameters

agent_id
string
required
The unique identifier of the agent.
memory_id
string
required
The ID of the memory to delete.
curl -X DELETE \
  "http://localhost:8000/api/v2/agents/my-agent/memories/b7c3cf31-e537-49f1-abc4-c50ac6adeac5" \
  -H "X-Session-Token: your_session_token"
{
  "agent_id": "my-agent",
  "memory_id": "b7c3cf31-e537-49f1-abc4-c50ac6adeac5",
  "namespace": "memanto_agent_my-agent",
  "status": "deleted"
}

Next Steps

  • Recall to find a memory’s ID before deleting it
  • Remember to store a new memory