2015-06-12 09:25:32 -04:00
|
|
|
# volume rm
|
|
|
|
|
2023-01-06 13:04:05 -05: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 13:04:05 -05:00
|
|
|
### Aliases
|
2016-07-07 14:43:18 -04:00
|
|
|
|
2023-01-06 13:04:05 -05:00
|
|
|
`docker volume rm`, `docker volume remove`
|
|
|
|
|
|
|
|
### Options
|
|
|
|
|
2024-07-03 02:29:57 -04:00
|
|
|
| Name | Type | Default | Description |
|
|
|
|
|:----------------|:-------|:--------|:-----------------------------------------|
|
|
|
|
| `-f`, `--force` | `bool` | | Force the removal of one or more volumes |
|
2023-01-06 13:04:05 -05:00
|
|
|
|
|
|
|
|
|
|
|
<!---MARKER_GEN_END-->
|
2015-06-12 09:25:32 -04:00
|
|
|
|
2017-02-07 18:42:48 -05:00
|
|
|
## Description
|
|
|
|
|
2023-12-13 09:16:56 -05: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 18:42:48 -05:00
|
|
|
## Examples
|
|
|
|
|
2021-08-21 08:54:14 -04:00
|
|
|
```console
|
2020-04-19 09:43:08 -04:00
|
|
|
$ docker volume rm hello
|
|
|
|
|
|
|
|
hello
|
2017-02-07 18:42:48 -05:00
|
|
|
```
|
2016-02-18 14:52:15 -05:00
|
|
|
|
2017-02-07 18:42:48 -05:00
|
|
|
## Related commands
|
2016-02-18 14:52:15 -05:00
|
|
|
|
|
|
|
* [volume create](volume_create.md)
|
|
|
|
* [volume inspect](volume_inspect.md)
|
|
|
|
* [volume ls](volume_ls.md)
|
2016-10-18 06:50:11 -04:00
|
|
|
* [volume prune](volume_prune.md)
|
2020-04-19 09:43:08 -04:00
|
|
|
* [Understand Data Volumes](https://docs.docker.com/storage/volumes/)
|