Mem0 icon

Mem0

Interact with the Mem0 API - intelligent memory layer for AI

Memory → Delete All

AI-generated

Summary

Delete all memories, optionally filtered by user, agent, application, or session identifier.

Inputs

  • authType (required) — Choose between Mem0 cloud or self-hosted instance.
  • userId — Unique user identifier. If provided, only memories associated with this user are deleted.
  • agentId — Identifier of the AI agent/assistant. If provided, only memories associated with this agent are deleted.
  • appId — Application or system context identifier. If provided, only memories associated with this application are deleted.
  • runId — Session or run identifier. If provided, only memories from this session are deleted.

Output shape

The Mem0 API response body as JSON, representing the result of the delete-all operation.

No request body is sent; filters are passed as query parameters (user_id, agent_id, app_id, run_id). The operation uses DELETE /v1/memories.

Examples

Example 1: Delete all memories for a specific user

Set authType to cloud (or self-hosted), provide userId='user_123', leave other filters empty.

Example 2: Delete all memories across the entire instance

Set authType and omit all optional filters (userId, agentId, appId, runId).

Links

Discussion