deploy.teardown_latest
Destroy the newest active deployment, or all active deployments when 'all' is true. Skips already destroyed or failed entries. Requires user confirmation.
Instructions
DESTRUCTIVE: destroy the newest active deployment, or all active deployments when all=true. Skips already destroyed/failed entries. Confirm with the user before calling — especially with all=true. Prefer deploy.destroy with an explicit deploymentId when targeting a specific deployment.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "deploy.teardown_latest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | When true, destroy every active deployment; otherwise only the newest |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| results | Yes | ||
| destroyed | Yes | How many deployments were destroyed |