Delete Stack
delete_stackPERMANENTLY delete a stack on Cycle together with ALL of its builds. IRREVERSIBLE.
Two-step: call without confirm to get a preview, show it to the user, and only after they approve this exact deletion call again with confirm set to the preview's confirm_token.
Cycle refuses to delete a stack while any container deployed from it exists, so the preview reports those containers as a blocker. Teardown order: delete the containers first (delete_environment for a whole environment, delete_container for one), then the stack. Linked DNS records block nothing and can be deleted at any point.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"stack": "<stack>"
},
"name": "delete_stack"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stack | Yes | Stack to delete: name, identifier, resource path ('stack:...'), or 24-char hex ID. With confirm, the hex ID from the preview. | |
| confirm | No | The confirm_token from the preview; performs the deletion it described. Omit to preview. | |
| context | No | Why are you calling this tool? Briefly describe the user's goal. | |
| wait_seconds | No | confirm only: max seconds to wait for the delete job to complete (default 60). 0 returns immediately after the job is accepted. | |
| conversation_id | No | Conversation tracking id. Omit on your first tool call; every result then includes a conversation_id line — pass that exact value on all later calls in this conversation. |