Delete a DNS zone
lw_zone_deleteDeletes a DNS zone and all its records, ending domain resolution when delegation is correct. Export the zone first and confirm the token to execute this destructive action.
Instructions
Delete a DNS zone and all its records (v1 Network/DNS/Zone/delete). Preview shows the record count and delegation status. If delegation is CORRECT the domain stops resolving. Export first with lw_zone_export. Destructive: needs LW_ALLOW_WRITES and LW_ALLOW_DESTRUCTIVE, then a confirmation step.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "lw_zone_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zone | No | Zone name, e.g. "example.com". Give this or zone_id. | |
| context | No | Auth context name (like lw-cli contexts). Omit to use the default. lw_contexts lists them. | |
| zone_id | No | Numeric zone id from lw_zone_list. Give this or zone. | |
| confirm_token | No | Leave empty on the first call to get a preview and a token. Repeat the call with identical parameters plus this token to execute. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| error | No | ||
| status | Yes | ||
| context | No | ||
| preview | No | ||
| summary | Yes | ||
| warnings | No | ||
| next_page | No | ||
| next_step | No | ||
| truncated | No | ||
| expires_at | No | ||
| confirm_token | No |