2015-06-12 09:25:32 -04:00
|
|
|
# volume rm
|
|
|
|
|
2023-01-06 19:04:05 +01:00
|
|
|
<!---MARKER_GEN_START-->
|
|
|
|
|
|
|
|
Remove one or more volumes. You cannot remove a volume that is in use by a container.
|
2015-06-12 09:25:32 -04:00
|
|
|
|
|
|
|
|
2023-01-06 19:04:05 +01:00
|
|
|
### Aliases
|
2016-07-07 20:43:18 +02:00
|
|
|
|
2023-01-06 19:04:05 +01:00
|
|
|
`docker volume rm`, `docker volume remove`
|
|
|
|
|
|
|
|
### Options
|
|
|
|
|
|
|
|
| Name | Type | Default | Description |
|
|
|
|
|:----------------|:-----|:--------|:-----------------------------------------|
|
|
|
|
| `-f`, `--force` | | | Force the removal of one or more volumes |
|
|
|
|
|
|
|
|
|
|
|
|
<!---MARKER_GEN_END-->
|
2015-06-12 09:25:32 -04:00
|
|
|
|
2017-02-07 15:42:48 -08:00
|
|
|
## Description
|
|
|
|
|
2023-12-13 15:16:56 +01:00
|
|
|
Remove one or more volumes. You can't remove a volume that's in use by a container.
|
2015-06-12 09:25:32 -04:00
|
|
|
|
2017-02-07 15:42:48 -08:00
|
|
|
## Examples
|
|
|
|
|
2021-08-21 14:54:14 +02:00
|
|
|
```console
|
2020-04-19 15:43:08 +02:00
|
|
|
$ docker volume rm hello
|
|
|
|
|
|
|
|
hello
|
2017-02-07 15:42:48 -08:00
|
|
|
```
|
2016-02-18 21:52:15 +02:00
|
|
|
|
2017-02-07 15:42:48 -08:00
|
|
|
## Related commands
|
2016-02-18 21:52:15 +02:00
|
|
|
|
|
|
|
* [volume create](volume_create.md)
|
|
|
|
* [volume inspect](volume_inspect.md)
|
|
|
|
* [volume ls](volume_ls.md)
|
2016-10-18 18:50:11 +08:00
|
|
|
* [volume prune](volume_prune.md)
|
2020-04-19 15:43:08 +02:00
|
|
|
* [Understand Data Volumes](https://docs.docker.com/storage/volumes/)
|