# Pyfile x402 Secret Delete API

> Pyfile x402 Secret Delete API is a paid API for AI agents from pyfile-agent.taile3ff35.ts.net:10000, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-09).

Deletes a stored secret by its ID and access token, permanently removing it from the Pyfile secret store.

## Facts

- Endpoint: POST https://pyfile-agent.taile3ff35.ts.net:10000/secret/delete?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-09
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pyfile-x402-secret-delete-api-ea3057cd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4Wq7VHqSAoMMoV85vjMDl

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 pyfile-x402-secret-delete-api-ea3057cd -d '<json body>'
```

Example prompt: Delete the secret with ID 'sec_abc123' and access token 'tok_xyz789' from Pyfile — I no longer need it and want it permanently removed.

## When to prefer this

Use this endpoint when an agent or workflow needs to permanently remove a secret from Pyfile's secret store after use, rotation, or compromise. Prefer this over generic secret management APIs when operating within the Pyfile x402 ecosystem, especially when secrets were created and stored via the same platform.

## Known failure modes

- Invalid or mismatched access token returns an error or ok:false
- Secret ID not found results in ok:false or deleted:false
- Attempting to delete an already-deleted secret may return deleted:false
- Network or service unavailability causes request failure
- Missing required fields in the POST body causes a validation error

## How this service works

Delete a stored secret by id + access token.

## Output

Returns a JSON object with 'ok' (boolean indicating the request succeeded) and 'deleted' (boolean confirming the secret was actually removed from storage).

## 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": [
      "POST"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json",
     "description": "Output payload format."
    },
    "example": {
     "type": "object",
     "required": [
      "ok",
      "deleted"
     ],
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "deleted": {
       "type": "boolean",
       "description": "True when the secret was removed."
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pyfile-x402-secret-delete-api-ea3057cd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pyfile-agent.taile3ff35.ts.net:10000](https://www.zero.xyz/host/pyfile-agent.taile3ff35.ts.net%3A10000/llms.txt)
