Skip to main content
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 via Authorization: Bearer <token> header.
id
string
required
Agent UUID
force
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 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

CodeDescription
200Agent deleted successfully
401Unauthorized - invalid or missing authentication
403AI Agents feature not enabled for your account
404Agent not found