Delete Environment
delete_environmentPERMANENTLY delete an environment on Cycle and EVERYTHING in it: all containers and their instances (including data on stateful instances), all virtual machines and their disks, all scoped variables, and the environment's service containers (discovery, VPN, load balancer). 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.
To delete a single container instead, use delete_container.
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": {
"environment": "<environment>"
},
"name": "delete_environment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| environment | Yes | Environment to delete. With confirm, the 24-char hex ID from the preview. | |
| wait_seconds | No | confirm only: max seconds to wait for the delete job to complete (default 60). Environments with many workloads take longer. 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. |