2015-06-12 09:25:32 -04:00
|
|
|
<!--[metadata]>
|
|
|
|
+++
|
2015-10-09 19:50:41 -04:00
|
|
|
title = "volume rm"
|
2015-06-12 09:25:32 -04:00
|
|
|
description = "the volume rm command description and usage"
|
|
|
|
keywords = ["volume, rm"]
|
|
|
|
[menu.main]
|
|
|
|
parent = "smn_cli"
|
|
|
|
+++
|
|
|
|
<![end-metadata]-->
|
|
|
|
|
|
|
|
# volume rm
|
|
|
|
|
2015-09-08 12:02:16 -04:00
|
|
|
Usage: docker volume rm [OPTIONS] VOLUME [VOLUME...]
|
2015-06-12 09:25:32 -04:00
|
|
|
|
|
|
|
Remove a volume
|
|
|
|
|
2015-12-23 09:37:06 -05:00
|
|
|
--help Print usage
|
2015-06-12 09:25:32 -04:00
|
|
|
|
2015-09-08 12:02:16 -04:00
|
|
|
Removes one or more volumes. You cannot remove a volume that is in use by a container.
|
2015-06-12 09:25:32 -04:00
|
|
|
|
2015-11-09 03:17:50 -05:00
|
|
|
$ docker volume rm hello
|
|
|
|
hello
|
2016-02-18 14:52:15 -05:00
|
|
|
|
|
|
|
## Related information
|
|
|
|
|
|
|
|
* [volume create](volume_create.md)
|
|
|
|
* [volume inspect](volume_inspect.md)
|
|
|
|
* [volume ls](volume_ls.md)
|
|
|
|
* [Understand Data Volumes](../../userguide/containers/dockervolumes.md)
|