service_remove
Delete a Docker swarm service permanently, stopping its tasks and removing its definition. Requires a swarm manager; no confirmation or undo. Use scale-to-zero to keep the definition.
Instructions
Stop and remove a swarm service.
Requires a swarm manager. Deletes the service definition and shuts down its tasks — no
confirmation, no undo. To stop work but keep the definition, service_scale to 0 replicas.
args: id_or_name - The service id or name returns: bool - True after the service is removed
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id_or_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |