# Agent Memory – Delete a Key

> Agent Memory – Delete a Key is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-26).

Deletes a stored key-value pair from an agent's private namespace, clearing it before its 30-day expiry.

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/memory/delete?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-26
- Activations on Zero: 0
- Provider: agent-data-tools.revmesh2074.workers.dev
- Website: https://agent-data-tools.revmesh2074.workers.dev
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-agent-memory-delete-a-key-83df8600
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lgVD9rleiqBXDDRF3pg56

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agent-data-tools-revmesh2074-workers-dev-agent-memory-delete-a-key-83df8600
```

Example prompt: Please delete the key 'current_task_id' from my agent memory namespace 'mySecretNamespace1234' — I want to clear that state now rather than wait for it to expire.

## When to prefer this

Use this endpoint when an AI agent needs to explicitly remove a stored memory entry before its 30-day natural expiry — for example, after completing a task, revoking a cached credential, or clearing stale state. Prefer this over letting entries expire naturally when immediate cleanup is required or when privacy/security demands prompt removal.

## Known failure modes

- Missing namespace or key parameter returns an error
- Namespace too short (under 16 chars) or too long (over 128 chars) rejected
- Key longer than 200 characters rejected
- deleted: false returned when key does not exist (not an error, just indicates nothing was there)
- Eventual consistency: a key written elsewhere within the last ~60 seconds may not yet be visible and could return deleted: false unexpectedly

## How this service works

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.

## Output

Returns a JSON object with the 'key' that was targeted and a 'deleted' boolean — true if the key existed and was removed, false if there was nothing to delete (the key did not exist or had already expired).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "namespace",
      "key"
     ],
     "properties": {
      "key": {
       "type": "string",
       "examples": [
        "user-preferences"
       ],
       "description": "The key, up to 200 characters"
      },
      "namespace": {
       "type": "string",
       "examples": [
        "demo-agent-memory-7f3c9a21"
       ],
       "description": "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."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "key": {
       "type": "string"
      },
      "deleted": {
       "type": "boolean"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "key": "user-preferences",
  "deleted": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-agent-memory-delete-a-key-83df8600/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
