Agent memory, delete a key
Delete the value saved under a key in your namespace now, before it expires. Answers deleted: false when there was nothing to delete. Values are kept until they expire (at most 30 days) or are deleted; reads anywhere may lag a write made elsewhere by up to a minute. Use to forget a fact or clear task state.
Inputs
| Name | Type | Description |
|---|---|---|
namespace (required) | string | Your namespace: a secret of 16 to 128 letters, digits, - or _ that you choose and reuse. Anyone who knows it can read and write it, so treat it like a password; send it in a POST body to keep it out of URLs. |
key (required) | string | The key, up to 200 characters |
Request
Over HTTP, with a card key from /credits:
curl -H "Authorization: Bearer adt_…" "https://agent-data-tools.revmesh2074.workers.dev/memory/delete?namespace=demo-agent-memory-7f3c9a21&key=user-preferences"
Or one of your 25 free calls, no key:
curl "https://agent-data-tools.revmesh2074.workers.dev/memory/delete?namespace=demo-agent-memory-7f3c9a21&key=user-preferences&trial=1"
Without a key, the same URL answers 402 Payment Required with x402 and MPP terms, so an agent with a wallet pays per call in USDC (Base, Polygon, Arbitrum or Solana over x402; Base or Tempo over MPP) and retries.
Example result
{
"key": "user-preferences",
"deleted": true
}
From an AI agent (MCP)
Add the MCP server to Claude, Cursor or any MCP client. This tool is memory_delete, and the first 25 successful calls are free:
https://agent-data-tools.revmesh2074.workers.dev/mcp