2015-06-12 13:25:32 +00:00
|
|
|
<!--[metadata]>
|
|
|
|
+++
|
2015-10-09 23:50:41 +00:00
|
|
|
title = "volume rm"
|
2015-06-12 13:25:32 +00:00
|
|
|
description = "the volume rm command description and usage"
|
|
|
|
keywords = ["volume, rm"]
|
|
|
|
[menu.main]
|
|
|
|
parent = "smn_cli"
|
|
|
|
+++
|
|
|
|
<![end-metadata]-->
|
|
|
|
|
|
|
|
# volume rm
|
|
|
|
|
2016-07-07 18:43:18 +00:00
|
|
|
```markdown
|
2016-06-10 14:40:09 +00:00
|
|
|
Usage: docker volume rm [OPTIONS] VOLUME [VOLUME...]
|
2015-06-12 13:25:32 +00:00
|
|
|
|
2016-07-29 17:41:52 +00:00
|
|
|
Remove one or more volumes
|
2015-06-12 13:25:32 +00:00
|
|
|
|
2016-07-07 18:43:18 +00:00
|
|
|
Aliases:
|
|
|
|
rm, remove
|
|
|
|
|
|
|
|
Options:
|
2016-06-10 14:40:09 +00:00
|
|
|
-f, --force Force the removal of one or more volumes
|
2016-07-07 18:43:18 +00:00
|
|
|
--help Print usage
|
|
|
|
```
|
2015-06-12 13:25:32 +00:00
|
|
|
|
2016-07-29 17:41:52 +00:00
|
|
|
Remove one or more volumes. You cannot remove a volume that is in use by a container.
|
2015-06-12 13:25:32 +00:00
|
|
|
|
2015-11-09 08:17:50 +00:00
|
|
|
$ docker volume rm hello
|
|
|
|
hello
|
2016-02-18 19:52:15 +00:00
|
|
|
|
|
|
|
## Related information
|
|
|
|
|
|
|
|
* [volume create](volume_create.md)
|
|
|
|
* [volume inspect](volume_inspect.md)
|
|
|
|
* [volume ls](volume_ls.md)
|
2016-06-13 18:08:11 +00:00
|
|
|
* [Understand Data Volumes](../../tutorials/dockervolumes.md)
|