Mem0 icon

Mem0

Interact with the Mem0 API - intelligent memory layer for AI

Memory → Delete

AI-generated

Summary

Delete a specific memory by its unique identifier from Mem0

Inputs

  • memoryId (required) — Unique identifier of the specific memory to delete (e.g., mem_abc123xyz). Required for delete, get, update, and history operations on memory resources.
  • authType — Choose between Mem0 cloud or your own self-hosted instance. Defaults to 'cloud'. Uses 'mem0Api' credentials for cloud, or 'mem0SelfHostedApi' credentials with Bearer token for self-hosted instances.

Output shape

JSON response body returned by the Mem0 API, representing the deleted memory record or a success status. Output as workflow JSON data.

The actual returned structure depends on the Mem0 service configuration and whether cloud or self-hosted is used.

Examples

Example 1: Delete a memory via Mem0 cloud

Set authType to 'cloud', provide the memoryId (e.g., 'mem_abc123xyz'). The node sends a DELETE request to https://api.mem0.ai/v1/memories/{memoryId}.

Example 2: Delete a memory via self-hosted instance

Set authType to 'selfHosted', configure the mem0SelfHostedApi credentials with a baseUrl. The node translates the endpoint by stripping the /v1 prefix and sends DELETE to {baseUrl}/memories/{memoryId}.

Links

Discussion