node_remove
Remove a Docker Swarm node after it has been drained, using force to remove active or reachable 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 |