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
|
|
|
|
|
2016-07-07 20:43:18 +02:00
|
|
|
```markdown
|
2016-06-10 07:40:09 -07:00
|
|
|
Usage: docker volume rm [OPTIONS] VOLUME [VOLUME...]
|
2015-06-12 09:25:32 -04:00
|
|
|
|
2016-07-30 01:41:52 +08:00
|
|
|
Remove one or more volumes
|
2015-06-12 09:25:32 -04:00
|
|
|
|
2016-07-07 20:43:18 +02:00
|
|
|
Aliases:
|
|
|
|
rm, remove
|
|
|
|
|
|
|
|
Options:
|
2016-06-10 07:40:09 -07:00
|
|
|
-f, --force Force the removal of one or more volumes
|
2016-07-07 20:43:18 +02:00
|
|
|
--help Print usage
|
|
|
|
```
|
2015-06-12 09:25:32 -04:00
|
|
|
|
2016-07-30 01:41:52 +08:00
|
|
|
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
|
|
|
|
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)
|
2016-06-13 11:08:11 -07:00
|
|
|
* [Understand Data Volumes](../../tutorials/dockervolumes.md)
|