Delete a DNS record
lw_record_deleteDelete a single DNS record by ID after previewing it and confirming with a token. Requires write and destructive permissions, and saves a zone history snapshot first.
Instructions
Delete one DNS record by id (v1 Network/DNS/Record/delete). Preview shows the record. Liquid Web keeps a zone history snapshot before changes (see lw_zone_history). Destructive: needs LW_ALLOW_WRITES and LW_ALLOW_DESTRUCTIVE, then a confirmation step.
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": {
"id": "<id>"
},
"name": "lw_record_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Record id from lw_record_list. | |
| context | No | Auth context name (like lw-cli contexts). Omit to use the default. lw_contexts lists them. | |
| 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 |