remove_wireguard_peer
Remove a WireGuard peer from a MikroTik router by specifying its peer ID. Useful for n8n automation to manage WireGuard configurations.
Instructions
Removes a WireGuard peer from the MikroTik device.
Notes: peer_id: "*N" or "N" from list output e.g. "*2"
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": {
"peer_id": "<peer_id>"
},
"name": "remove_wireguard_peer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | ||
| peer_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |