volume_remove
Remove a Docker volume by name. Fails if a container references it unless force=True is set.
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
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| force | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |