{"uid":"cap_lgVD9rleiqBXDDRF3pg56","slug":"agent-data-tools-revmesh2074-workers-dev-agent-memory-delete-a-key-83df8600","name":"Agent Memory – Delete a Key","description":"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.","url":"https://agent-data-tools.revmesh2074.workers.dev/memory/delete?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["namespace","key"],"properties":{"key":{"type":"string","description":"The key, up to 200 characters"},"namespace":{"type":"string","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."}}},"responseSchema":{"type":"object","properties":{"key":{"type":"string"},"deleted":{"type":"boolean"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USD","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_A8iHdcdFYZDh4qmYFVtzn","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"agent-data-tools.revmesh2074.workers.dev","brandSlug":"agent-data-tools-revmesh2074-workers-dev-x402","brandBaseUrl":"https://agent-data-tools.revmesh2074.workers.dev","brandDocsUrl":null,"whatItDoes":"Deletes a stored key-value pair from an agent's private namespace, clearing it before its 30-day expiry.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Clear completed task state","prompt":"My agent just finished a long-running job and I want to clear the 'job_status' key from namespace 'agentWorkflow_abc123' so it doesn't linger. Can you delete it now?"},{"title":"Forget a saved user preference","prompt":"I updated a user's preference and the old value is stale — please delete the key 'user_pref_theme' from namespace 'userPrefs-xyz789' so the agent stops using it."},{"title":"Revoke a stored secret or token","prompt":"I accidentally stored a sensitive token under key 'temp_api_token' in namespace 'secureAgentSpace_9871' — delete it immediately from agent memory."}],"resultDescription":"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).","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-26T06:45:35.325Z","isFirstParty":false,"canonicalSlug":"agent-data-tools-revmesh2074-workers-dev-agent-memory-delete-a-key-83df8600"}