Sessions & Agents
Memory Operations

Purge Expired Memories

Changed on

Permanently delete memories expired longer than the policy's purge window.

Destructive and irreversible. Disabled unless the policy sets purge_expired_after. Pass dry_run: true to preview.

Requires:

  • X-Session-Token: {session_token}
post/api/v2/agents/{agent_id}/policy/purge

Request

  • The document declares no server URL.
  • Auth
    none declared

Path parameters

agent_idstring required

Headers

x-session-tokenstring nullable
authorizationstring nullable
X-Api-Keystring nullable

Cookies

memanto_session_tokenstring nullable

Request body

dry_runboolean

Report what would change without writing anything

Response

Successful Response

unknown required

Changes