Learning resourcesReviewed · Mem0

Mem0 Delete Memory Operation (documentation guide)

This is Mem0's official documentation page on deleting stored memories, written for developers who use the Mem0 Platform API or the open-source SDK to give an LLM application a way to forget data, and its main catch is that it is a short vendor guide that leaves out response formats, SDK versions, pricing and what happens to deleted data behind the scenes. It covers deleting one memory by ID, deleting a list of IDs (up to 1000 per request), deleting by user, agent or run, and an explicit wildcard for bulk deletion, with Python, JavaScript and TypeScript snippets.

Researched 15 Nov 2026

In short.

This is Mem0's official documentation page on deleting stored memories, written for developers who use the Mem0 Platform API or the open-source SDK to let an LLM application forget data, and its main catch is that it is a short vendor guide that does not state response formats, SDK versions, costs, licence terms or whether deletion can be undone. It documents three Platform delete methods (delete by memory ID, batch_delete for up to 1000 IDs, delete_all by entity filter), a wildcard opt-in for bulk deletion, protective errors added after a breaking change, and a brief open-source example. Nothing was run; all findings come from reading the captured page.

Researched and written by an AI model and checked by a second AI model. How it works

Scope is the single documentation page at [https://docs.mem0.ai/core-concepts/memory-operations/delete], captured in full as one HTML file. All of its visible text, code examples, callouts, comparison table and embedded metadata were read. Linked pages (API reference, pricing, MCP, quickstart, expiration, cookbooks, release notes) were excluded and not read, so their contents are not described. The page states no licence, price, version or response format, and those are reported as unknown. Nothing was installed, run or called, so the behaviour of the SDKs and the hosted service is untested.

The overview

What this resource is

The resource is the page titled Delete Memory Operation in the Mem0 documentation, at [https://docs.mem0.ai/core-concepts/memory-operations/delete]. It sits under Core Concepts in the Mem0 Platform section of the docs, between Update Memory and Memory Evaluation. Mem0 describes itself in the site metadata as a self-improving memory layer for LLM applications. This page is one operation in that product's add, search, update and delete set.

The page's own one-line description is: Remove memories from Mem0 either individually, in bulk, or via filters. It is documentation, not software: it teaches how to call existing Mem0 SDK methods. The site manifest shows the docs are built from the mem0ai/mem0 GitHub repository (docs folder, main branch) and hosted on Mintlify, and the page carries a Suggest edits link to the file core-concepts/memory-operations/delete.mdx in that repository.

Overall assessment

As a how-to for a single task, the page is clear and compact. It states the three scopes (one ID, a list of IDs, everything matching a filter), shows each with side-by-side Python and JavaScript examples, and puts the risky parts in warning callouts: delete_all with no filters now raises an error, an empty or whitespace-only ID is rejected before the request is sent, and a full project wipe needs all four entity filters set to the wildcard. Those guard rails are the most useful content for anyone worried about wiping a production project by accident.

The weaknesses are what it leaves out. It does not show the shape of the confirmation payload, does not say whether deletion is permanent or recoverable, does not give SDK versions for the described behaviour, and does not say what a delete costs or counts against. It also claims the operation satisfies GDPR and CCPA erasure requests; that is a vendor statement on a docs page, not evidence of legal compliance, and it does not explain what happens to copies in logs, backups or downstream stores. Treat it as a good starting reference to read alongside the linked API reference pages, not as a complete specification.

Who it is for

The page is aimed at developers who already use, or are evaluating, Mem0 as the memory layer of an LLM application and need a way to forget data: honouring a user's erasure request, removing wrong or stale facts, or clearing memories when a session or retention period ends. Its own use-case list names exactly these: forgetting a user's preferences on request, removing outdated or incorrect facts, cleaning up after session expiry or retention deadlines, and meeting privacy rules such as GDPR and CCPA.

It is readable for a beginner who knows basic Python or JavaScript, because each method is a one- or two-line call. It assumes you already understand Mem0 concepts such as user_id, agent_id, run_id and memory IDs returned by add and search; those are not defined in depth here. It is not useful for people who do not use Mem0, and it is not legal guidance for teams that need to prove regulatory compliance.

What it covers

Platform (managed API) operations described: delete a single memory by memory_id; batch_delete, defined in the key terms as removing up to 1000 memories in one request, taking a list of objects each with a memory_id; and delete_all, defined as filter-based deletion by user, agent, run or metadata. The text says you can also filter by agent_id, run_id and metadata (as a JSON string). Code examples show delete_all with user_id, agent_id or run_id.

Wildcard behaviour: setting a filter to the string * deletes all memories for that entity type across the whole project, and a full project wipe requires user_id, agent_id, app_id and run_id all set to *. The page also mentions delete_users and deleteUsers as applying the same empty-ID check.

Open source: a short example using Memory() with memory.delete(memory_id=...) and memory.delete_all(user_id=...) in Python, and the equivalent await memory.delete(...) and memory.deleteAll({ userId }) in TypeScript, imported from mem0ai/oss.

Other content: a three-step flow (choose the scope, submit the call, verify by confirming the response message and re-running search or checking the dashboard or logs), a comparison table of the three methods, a note that memories flagged immutable cannot be updated so you delete and re-add instead, and a note that with Mem0 MCP an AI agent can delete its own memories.

Using it

What you need

The Platform examples require an API key (the snippets use a placeholder your-api-key); account-registration requirements are not stated on this page. The examples also use the Python package exposing MemoryClient from mem0 or the JavaScript package mem0ai exposing MemoryClient. The page itself does not give install commands, minimum Python or Node versions, or a way to obtain the key; the site header links to a Your Dashboard page at [https://app.mem0.ai?utm_source=oss&utm_medium=docs-nav], which was not captured.

For the open-source examples you need the SDK that provides Memory (mem0 for Python, mem0ai/oss for TypeScript). The example calls Memory() with no arguments, and the page does not describe which language model, embedding model or vector store it uses by default or how to configure them, so the real requirements for self-hosting are unknown from this page.

You also need the identifiers you want to delete. Memory IDs come from earlier add or search calls, per the key terms. Existing user_id, agent_id, run_id or app_id values must already be in use for filter-based deletion to be meaningful.

How it works

The page describes the interface, not the internals. On the Platform side you call an SDK method (delete, batch_delete, delete_all in Python; delete, batchDelete, deleteAll in JavaScript) that sends a request to Mem0's hosted service, which returns a confirmation payload. The page says the dashboard reflects the removal within seconds. It links separate API reference pages for Delete Memory, Batch Delete and Filtered Delete, which were not captured here, so the underlying HTTP endpoints and parameters are not documented in the evidence.

Filter deletes work by entity identifiers passed as top-level arguments (user_id="alice" in Python, userId: "alice" in JavaScript), and a warning callout says delete_all does not accept a filters argument. The page documents two separate validation rules. First, calling delete_all with no filters raises an error; the page does not say whether that check happens in the SDK or in the hosted service. Second, an empty or whitespace-only ID such as user_id="" would match every memory in the project, so the SDKs raise an error before sending the request; delete_users and deleteUsers apply the same check. The page records the earlier behaviour as a breaking change: delete_all used to wipe all project memories when called with no filters.

How the open-source Memory class removes data from whatever store it uses, and whether graph memory or related records are also cleaned up, is not covered on this page.

Setup and first use

Following the page, a first delete on the Platform would go: create a client with your API key, pick the scope, make the call, then verify. For one record, create MemoryClient with the key and call delete with the memory ID. For several, build a list of objects like {"memory_id": "id1"} and pass it to batch_delete. For everything belonging to one user, agent or run, call delete_all with that single ID. Verification is by confirming the response message, re-running a search, or looking at the dashboard or logs.

The page gives no installation or authentication walkthrough. Readers who need that guidance may want to look for it elsewhere in the Mem0 documentation; the site navigation links a Quickstart page [https://docs.mem0.ai/platform/quickstart], but that page was not captured, so its contents, and whether it covers installation or authentication, are unknown. Nothing was installed or executed for this review.

Worked example from the page

The Python single-delete example on the page is: from mem0 import MemoryClient; client = MemoryClient(api_key="your-api-key"); memory_id = "your_memory_id"; client.delete(memory_id=memory_id). The JavaScript version is: import MemoryClient from 'mem0ai'; const client = new MemoryClient({ apiKey: "your-api-key" }); client.delete("your_memory_id"), chained with then and catch handlers that log the result or error.

A user-erasure request would use the filter form, client.delete_all(user_id="alice") in Python or client.deleteAll({ userId: "alice" }) in JavaScript. The example deletes memories associated with the specified user; the page does not explain how overlapping entity associations are handled. The page's warning states that a full project wipe requires the wildcard * for all four filters (user_id, agent_id, app_id and run_id), and that setting only some to * deletes memories only for those entity types. These snippets are reproduced from the documentation; they were not run for this review, and the response contents are not shown on the page.

Assessment & evidence

Limitations and open questions

Undocumented on this page: whether deletes are permanent or can be recovered; the structure of success and error responses; behaviour when an ID does not exist; how batch_delete handles a partial failure or a list over 1000; rate limits; whether graph memory, stored history or backups are also cleared; and how long removal takes beyond the remark that the dashboard updates within seconds. No SDK or API version is given for any behaviour, including the breaking change in delete_all, and no date is attached to that change.

The page requires entity IDs as top-level arguments and mentions metadata as a JSON string, but provides no metadata-deletion example. The wildcard section also introduces app_id, which is not described elsewhere on the page. The wildcard rules are written under the Platform headings; whether the open-source SDK behaves the same way is not stated.

The GDPR and CCPA statements are marketing-style claims on a documentation page. They are not an audit, certification or legal opinion. Everything here comes from reading the page; no calls were made to the Mem0 service or SDKs, so actual behaviour is untested.

Reasoning behind the findings

The description of capabilities follows from the page's key terms, the five code groups and the method comparison table, which agree with each other on method names and scopes. The rules about rejected calls (delete_all with no filters, and empty or whitespace-only IDs) are taken from the page's warning callouts; the examples and the comparison table do not show them. Where the page is silent (responses, reversibility, cost, licence, versions), the report says unknown rather than inferring from how similar tools behave.

The assessment weighs the clear scoping and the protective warnings as strengths because they are stated explicitly in the warning callouts, with the full-wipe rule also repeated in the code comments. It weighs the missing operational detail and the missing metadata-deletion example as weaknesses because a developer building an erasure workflow would need those answers. The compliance claim is treated as unverified because the only support on the page is the vendor's own sentence.

Alternatives and related routes

The page itself points to a few related routes inside Mem0: the Mem0 MCP integration, which lets an AI agent delete its own memories when data becomes irrelevant or at a user's request; the expiration date field on the update operation, suggested for automating retention instead of deleting by hand; the dashboard and logs for checking results; and the linked API reference pages for each delete method. Those pages were not read for this report.

The page does not compare Mem0 with other memory systems or with deleting records directly in an underlying database, so no judgement about alternatives to Mem0 is offered here. If your application uses a different memory layer, this page does not apply to it.

Evidence base

One captured file supports this report: the HTML of the selected page (evidence_5df62bfe-374c-4638-b777-aaf881e26dbb, about 286 KB, captured 15 November 2026). It includes the rendered text, all code blocks for the Python, JavaScript and TypeScript tabs, the callouts, the method comparison table, the embedded page source and the site metadata. A large part of the file is site navigation and scripts, which were not treated as findings about the resource.

No other files, linked pages, repository contents or running software were examined. Claims about response formats, pricing, licence and internals are therefore not supported by evidence and are marked unknown.

Access & freshness

Costs

The page states no prices, quotas, rate limits or billing rules, so the cost of using these delete operations is unknown from this evidence. The Platform examples require an API key for Mem0's managed service, and the site navigation has a Pricing entry under Support [https://docs.mem0.ai/platform/pricing], but that page was not captured and nothing here says whether deletes are free or metered, or whether a free tier exists.

For the open-source route, the page does not say what you must run or pay for (hosting, a language model, a vector store), so that cost is also unknown. The captured page states no documentation-access price.

Rights and licence

The captured page contains no licence statement or reuse terms for the documentation text or the code snippets. It does show that the docs are edited through the public GitHub repository mem0ai/mem0 (Suggest edits and Raise issue links) and that the site is built on Mintlify, but the licence of that repository, of the SDKs, and of the documentation content is not in the evidence, so it is unknown here. No downloadable package is offered by this resource.

Anyone planning to copy the snippets into their own project, or to redistribute the text, should check the repository's licence and Mem0's terms directly.

Freshness

The page's embedded metadata gives a last-modified time of 12 October 2026 (16:28 UTC), and the capture was taken on 15 November 2026, about five weeks later. The page carries no version number, and it does not date the breaking change to delete_all, so it cannot be tied to a specific SDK release.

Because the page documents behaviour that has already changed once, and the docs are published from the main branch of the project repository, the text can change. Readers should check the live page and the release notes before relying on specific parameter names.

Suggested next steps

If you use Mem0, check whether the linked Delete Memory, Batch Delete and Filtered Delete API reference pages document the response formats and error cases that this page omits; their contents are not covered here. Try the calls first in a non-production project with throwaway data and confirm the result by searching afterwards, as the page itself recommends.

Prefer deleting by explicit ID or by a single entity ID. Avoid the * wildcard unless you truly intend a bulk wipe, and remember that a full project wipe needs all four filters set to *. Keep your SDK version pinned and recheck the documentation when you upgrade, since delete_all has already changed behaviour once.

If you are handling real erasure requests, confirm with Mem0 and with your own legal or privacy advisers what is removed, how quickly, and whether backups or logs are covered. Check the Pricing page for any cost implications before running large deletes.

Evidence for this report

selected-page.htmlselected · checked 2026-11-15