delete_network
Remove a UniFi network or VLAN permanently by name or ID. Confirmation is required to prevent dropping dependent clients and routes, so list networks first to verify the target.
Instructions
Delete a network/VLAN by name or ID.
Mutating operation: removed immediately and persisted on the UniFi console. Requires confirm=true because deleting a network can drop clients and routes that depend on it. List networks with get_networks first to confirm the target.
Args: name: Network name or record id to delete. site: Site to operate on. Defaults to "default". device: Optional console name to target a specific UniFi device; omit for default. confirm: Safety gate: must be True to delete. Defaults to False.
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": {
"name": "<name>"
},
"name": "delete_network"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Network name or record id to delete. | |
| site | No | Site to operate on. Defaults to "default". | default |
| device | No | Optional console name to target a specific UniFi device; omit for default. | |
| confirm | No | Safety gate: must be True to delete. Defaults to False. |