# 2s KV Store Delete

> 2s KV Store Delete is a paid API for AI agents from 2s.io, paid per call via x402, $0.005/call, status unknown (last checked 2026-12-03).

Delete a key-value pair from a namespaced key-value store by specifying the namespace and key to remove.

## Facts

- Endpoint: POST https://2s.io/api/store/kv-delete?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-kv-store-delete-214ac717
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Zdpu7wXz-47GTH5gDEanu

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 2s-kv-store-delete-214ac717 -d '<json body>'
```

Example prompt: Delete the key 'session_token_abc123' from the 'user-sessions' namespace in my 2s KV store.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "ns": {
   "type": "string",
   "description": "Namespace the key lives in."
  },
  "key": {
   "type": "string",
   "description": "Key to delete."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-kv-store-delete-214ac717/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
