node_remove
Remove a node from a Docker swarm after draining it to reschedule tasks cleanly. Force removal for active nodes.
Instructions
Remove a node from the swarm.
A node should normally be drained (node_update with Availability "drain") and have left the
swarm first, so its tasks reschedule cleanly. Removing an active/reachable node requires force=True.
args: id_or_name - The node id or name to remove force - Force removal of an active/reachable node returns: bool - True after the node is removed
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | ||
| id_or_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |