Sebastiaan van Stijn 987da09578
cli/command/volume: remove example and var for long description
This was the only command for which we set the "example" field; while
we could consider doing this for other commands, we need to look what's
best w.r.t. duplicating the information maintained in markdown.

Also remove the intermediate variable used for the long description,
as this was also the only location where we used one.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-02-03 12:21:00 +01:00

38 lines
856 B
Markdown

# volume rm
<!---MARKER_GEN_START-->
Remove one or more volumes. You cannot remove a volume that is in use by a container.
### Aliases
`docker volume rm`, `docker volume remove`
### Options
| Name | Type | Default | Description |
|:----------------|:-------|:--------|:-----------------------------------------|
| `-f`, `--force` | `bool` | | Force the removal of one or more volumes |
<!---MARKER_GEN_END-->
## Description
Remove one or more volumes. You can't remove a volume that's in use by a container.
## Examples
```console
$ docker volume rm hello
hello
```
## Related commands
* [volume create](volume_create.md)
* [volume inspect](volume_inspect.md)
* [volume ls](volume_ls.md)
* [volume prune](volume_prune.md)
* [Understand Data Volumes](https://docs.docker.com/storage/volumes/)