static_lease_remove
Remove an OpenWrt DHCP static lease by section ID or MAC with a UCI change preview and safety rollback. Set confirm=true to apply; only server-created leases are removed unless force=true.
Instructions
Remove a static lease, by section id (see uci_show dhcp) or by MAC. Only leases this server created are removed unless force=true. Without confirm=true this only returns a preview of the UCI changes and changes nothing. With confirm=true it applies them with the router's rollback timer, checks the router still answers, and confirms; if the check fails, the router restores the old config by itself.
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": "static_lease_remove"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mac | No | ||
| force | No | ||
| confirm | No | ||
| section | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||