tailnet_device_remove
Remove a device from a Tailscale network as the final decommissioning step. Dry-run previews last seen and inventory; online or enabled hosts require force.
Instructions
Remove a machine from the tailnet (Tailscale API, needs TAILSCALE_API_KEY): the last step of taking a server out of service. The dry run shows the device, when it was last seen and whether it is still in fleet.yaml; an online device or one still in the inventory is refused unless force.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apply | No | false (default) = dry run: show what will happen on which hosts and a planHash. true = run it; needs planHash | |
| force | No | remove even if it is online or still an enabled inventory host | |
| device | Yes | MagicDNS name (node-pl2), full name or hostname | |
| planHash | No | planHash from the dry run of the very same call, good for one apply; refused if targets or their state changed since |