volume_remove
Remove a Docker volume by name, with force to delete even when containers reference it.
Instructions
Remove a single volume by name.
Fails if any container, running or stopped, still references the volume - remove or
recreate those containers first, or pass force=True to remove it anyway (the
containers keep their reference but lose the underlying data). For bulk cleanup of
volumes with no container references at all, use volume_prune instead.
Args: name: Volume name to remove force: Remove even if a container still references the volume
Returns: bool: True after removal
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": {
"name": "<name>"
},
"name": "volume_remove"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| force | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |