service_remove
Stop and remove a Docker Swarm service by deleting its definition and shutting down its tasks. Use when permanent removal is required, as this action has no undo.
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.
Returns: bool: True after the service is removed
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id_or_name": "<id_or_name>"
},
"name": "service_remove"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id_or_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |