> ## Documentation Index
> Fetch the complete documentation index at: https://docs.memanto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Memory

> Delete a single memory from the active agent's namespace.

## 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.

<ParamField header="X-Session-Token" type="string" required>
  Session token from [Activate Agent](/api-reference/sessions/activate-agent). Must match `agent_id`.
</ParamField>

## Path Parameters

<ParamField path="agent_id" type="string" required>
  The unique identifier of the agent.
</ParamField>

<ParamField path="memory_id" type="string" required>
  The ID of the memory to delete.
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X DELETE \
    "http://localhost:8000/api/v2/agents/my-agent/memories/b7c3cf31-e537-49f1-abc4-c50ac6adeac5" \
    -H "X-Session-Token: your_session_token"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 - OK theme={null}
  {
    "agent_id": "my-agent",
    "memory_id": "b7c3cf31-e537-49f1-abc4-c50ac6adeac5",
    "namespace": "memanto_agent_my-agent",
    "status": "deleted"
  }
  ```

  ```json 404 - Not Found theme={null}
  {
    "detail": "Memory 'b7c3cf31-e537-49f1-abc4-c50ac6adeac5' was not found for agent 'my-agent'"
  }
  ```

  ```json 401 - Unauthorized (Missing Token) theme={null}
  {
    "detail": "Missing session token. Use X-Session-Token header."
  }
  ```

  ```json 500 - Server Error theme={null}
  {
    "detail": {
      "error": "InternalServerError",
      "message": "An unexpected error occurred",
      "details": {
        "original_error": "Session is for agent 'other-agent', cannot access 'my-agent'"
      }
    }
  }
  ```
</ResponseExample>

## Next Steps

* [Recall](/api-reference/search/recall) to find a memory's ID before deleting it
* [Remember](/api-reference/data/remember) to store a new memory
