Purge logs
tzcloud_purge_logsErase every log entry and counter total for one application environment, or all environments if you pass none, before retention ends. It can clear log_capacity_reached. This cannot be undone. The control plane's own record stays. Container console output stays in the hosting provider's logs for up to thirty days, beyond any purge.
Destructive: needs a signed-in session or a token minted with destructive. Give approval_url to the account's owner for browser approval. Nothing is erased before it. Read read_approval_status to its end for the counts erased.
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>"
},
"name": "tzcloud_purge_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request_id | No | Any string you choose. A repeat from the same account while that pending action is live returns it again, creating no second 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 | No | Erase `development`, `production` or `local`; omitted or empty erases all. Other strings draw `invalid_request` before any approval request. |