remove_static_dns
Remove a static DNS entry from MikroTik RouterOS by name, optionally filtered by record type. Preview removal with confirm=False; execute with confirm=True.
Instructions
Remove a static DNS entry (/ip/dns/static remove) by name,
optionally narrowed by record_type ("A"/"CNAME").
WRITE tool, guarded: blocked entirely unless the server is running
with MIKROTIK_ALLOW_WRITE=true. Call with confirm=False (the
default) to get a preview of what would be removed; call again with
confirm=True to actually remove it. Errors clearly if nothing
matches name (narrowed by record_type), or if more than one row
still matches after narrowing (AmbiguousResourceError) - never
guesses which one to remove.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| confirm | No | ||
| device_name | Yes | ||
| record_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||