Delete a specific XMemo memory by its path/id. The path is returned by memory_search and encodes the XMemo memory id.
AI agents call memory_forget to permanently remove resources in Openclaw Memory — typically in cleanup and lifecycle workflows. It does its job in a single call, and there is no undo.
This tool permanently removes data from a long-term memory system. Even though the scope is limited to individual memory records (not the entire database), the operation is irreversible and could cause loss of important agent state, decisions, or audit trails.
From the tool's definition 'Delete a specific XMemo memory by its path/id' — the verb 'Delete' and the action of removing memory records by path/id indicate irreversible data destruction.
Attacks that exploit this kind of access
Delete a specific XMemo memory by its path/id. The path is returned by memory_search and encodes the XMemo memory id. It is categorised as a Destructive tool in the Openclaw Memory MCP Server, which means it can permanently delete or destroy data. Block by default and require explicit approval.
Register the Openclaw Memory MCP server in PolicyLayer and add a rule for memory_forget: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Openclaw Memory. Nothing to install.
memory_forget is a Destructive tool with critical risk. Critical-risk tools should be blocked by default and only enabled with explicit human approval.
Yes. Add a rate_limit block to the memory_forget rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for memory_forget. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
memory_forget is provided by the Openclaw Memory MCP server (@xmemo/openclaw-memory). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
memory_forget is one line of Openclaw Memory's registry record.
The record carries the whole server: verified identity, auth posture, risk grade, every tool classified, recommended policy — re-checked continuously.
Teams ship this data inside their own products. See what a licence covers →