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
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| force | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |