Delete environment
tzcloud_delete_environmentDelete an application's development environment and everything running or stored in it: its container, database, realm, credentials, files, and logs. Its versions are withdrawn from tzcloud_list_versions. The call keeps the application, its production environment, its areas, and its declarations. Production is deleted only with its application. Afterwards the application has one environment, so a deploy goes to production. With one environment, the call is accepted only where development's records remain. These are a database setup, whole or stopped partway, a deletion of them that stopped, or a record an earlier version of the platform left. It then erases them, the secrets, files, and logs kept for local runs among them, and the next submit_manifest sets the database up again. Otherwise it is refused environment_not_created. Destructive: completes only after a person approves it in the browser.
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": {
"application": "<application>",
"environment": "<environment>"
},
"name": "tzcloud_delete_environment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request_id | No | Any string you choose. A repeat from the same account while the earlier pending action is live (requested, approved, or executing) returns it again; once it has ended, it starts a new one. Omitted, every call creates a new one. | |
| application | Yes | Your account's application `id` from `tzcloud_list_applications`, not its name or label. | |
| environment | Yes | `development` alone; `production` is refused `invalid_request`, because production is deleted only with its application through `tzcloud_delete_application`. On an application with one environment the call is refused `environment_not_created`. |