Delete Agent
curl --request POST \
--url https://api.app.shinzo.ai/v1/agent/delete/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"force": true
}'AI Agents
Delete Agent
Permanently delete an agent and all associated data.
POST
/
v1
/
agent
/
delete
/
{id}
Delete Agent
curl --request POST \
--url https://api.app.shinzo.ai/v1/agent/delete/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"force": true
}'Authentication
Requires JWT token or Platform API key viaAuthorization: Bearer <token> header.
string
required
Agent UUID
boolean
default:"false"
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 settingforce 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 |

