2015-06-12 09:25:32 -04:00
|
|
|
<!--[metadata]>
|
|
|
|
+++
|
2015-10-09 16:50:41 -07: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 09:02:16 -07:00
|
|
|
Usage: docker volume rm [OPTIONS] VOLUME [VOLUME...]
|
2015-06-12 09:25:32 -04:00
|
|
|
|
|
|
|
Remove a volume
|
|
|
|
|
2015-12-23 06:37:06 -08:00
|
|
|
--help Print usage
|
2015-06-12 09:25:32 -04:00
|
|
|
|
2015-09-08 09:02:16 -07: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 02:17:50 -06:00
|
|
|
$ docker volume rm hello
|
|
|
|
hello
|
2016-02-18 21:52:15 +02: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)
|