{"uid":"cap_Zdpu7wXz-47GTH5gDEanu","slug":"2s-kv-store-delete-214ac717","name":"2s KV Store Delete","description":"The (most) everything API: 575+ pay-per-call endpoints for AI agents — ground-truth data, a full AI gateway, and agent infrastructure (storage, queues, watchers). USDC via x402, no signup, no API keys, and upto billing: pay actual usage, not the quote.","url":"https://2s.io/api/store/kv-delete?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"ns":{"type":"string","description":"Namespace the key lives in."},"key":{"type":"string","description":"Key to delete."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_nrZOcv55aqbKfnmB6L7Iq","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Delete a key-value pair from a namespaced key-value store by specifying the namespace and key to remove.","exampleAgentPrompt":"Delete the key 'session_token_abc123' from the 'user-sessions' namespace in my 2s KV store.","exampleUseCases":[{"title":"Clearing expired session data","prompt":"Delete the key 'auth_token_xyz' from the 'sessions' namespace — the session has expired and I want to clean it up from my KV store."},{"title":"Removing stale agent task state","prompt":"My agent finished processing, so please delete the key 'task_progress_42' from the 'agent-tasks' namespace in the 2s KV store to free up that slot."},{"title":"Purging cached API response","prompt":"Can you delete the key 'weather_cache_nyc' from the 'api-cache' namespace? The cached data is outdated and I don't want stale responses being returned."}],"resultDescription":"A confirmation that the specified key has been deleted from the given namespace in the KV store, or an indication if the key did not exist. No data is returned about the deleted value itself.","failureModes":["Key does not exist in the namespace — may return a no-op success or 404-style error","Namespace not found or not accessible — returns error indicating invalid namespace","Missing required fields (ns or key) — returns validation error","Unauthorized access to namespace — returns permission error","Network timeout or service unavailability — returns 5xx error"],"whenToPreferThis":"Use this endpoint when an AI agent needs to remove a specific key from persistent namespaced KV storage on the 2s platform, particularly when managing agent state, session cleanup, cache invalidation, or task lifecycle management. Prefer this over alternatives when already using 2s.io for KV storage (read/write), since it integrates natively with the same namespace model and requires no signup or API keys — just USDC per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-03T12:53:07.140Z","isFirstParty":false,"canonicalSlug":"2s-kv-store-delete-214ac717"}