API ReferencePlatform
Delete Agent (Platform)
Permanently delete an agent and all associated data.
Delete Agent (Platform)
Permanently removes an agent, all wallets, transactions, spending controls, subscriptions, services, usage logs, and claim codes.
Authentication
Requires X-Master-Key header.
Path parameters
| Parameter | Type | Description |
|---|---|---|
id | string | Agent UUID |
Request
curl -X DELETE http://localhost:4000/v1/platform/agents/AGENT_ID \
-H "X-Master-Key: mk_your_key"Response (200)
{
"deleted": true,
"id": "agent-uuid"
}What gets deleted
- API key
- All wallets
- All transactions
- All spending controls
- All gateway subscriptions
- All owned services
- All usage logs
- Claim codes
Errors
| Status | Code | Description |
|---|---|---|
| 404 | NOT_FOUND | Agent not found |