Delete an agent
delete_agentDelete an agent and invalidate its token to halt CI operations. Drain it first to prevent losing running jobs, then confirm with a token.
Instructions
Removes an agent and invalidates its token. Anything it was running is lost and has to be restarted. Drain it first with update_agent no_schedule=true. Two-step.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| org_id | No | Set for an organization-scoped agent when the account is an organization admin rather than an instance admin. | |
| agent_id | Yes | Numeric agent id. | |
| confirm_token | No | Token from a previous call of this tool. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| truncated | No | Present only when the answer was shortened to fit the budget. |