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.
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 |