Authentication
Requires JWT token or Platform API key via Authorization: Bearer <token> header.
Force deletion even if the agent is currently active
Example Request
curl -X POST https://api.app.shinzo.ai/v1/agent/delete/a1b2c3d4-e5f6-7890-abcd-ef1234567890 \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{}'
Example Response
{
"message": "Agent deleted successfully"
}
This action is permanent and cannot be undone. All agent data — including files, message history, MCP server access grants, and configuration — will be permanently deleted.
Force Delete
If the agent is currently active, you can force deletion by setting force to true:
curl -X POST https://api.app.shinzo.ai/v1/agent/delete/a1b2c3d4-e5f6-7890-abcd-ef1234567890 \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"force": true}'
Status Codes
| Code | Description |
|---|
200 | Agent deleted successfully |
401 | Unauthorized - invalid or missing authentication |
403 | AI Agents feature not enabled for your account |
404 | Agent not found |