github.com/AliyunContainerService/cli@v0.0.0-20181009023821-814ced4b30d0/docs/reference/commandline/volume_rm.md (about)

     1  ---
     2  title: "volume rm"
     3  description: "the volume rm command description and usage"
     4  keywords: "volume, rm"
     5  ---
     6  
     7  <!-- This file is maintained within the docker/cli GitHub
     8       repository at https://github.com/docker/cli/. Make all
     9       pull requests against that repo. If you see this file in
    10       another repository, consider it read-only there, as it will
    11       periodically be overwritten by the definitive file. Pull
    12       requests which include edits to this file in other repositories
    13       will be rejected.
    14  -->
    15  
    16  # volume rm
    17  
    18  ```markdown
    19  Usage:  docker volume rm [OPTIONS] VOLUME [VOLUME...]
    20  
    21  Remove one or more volumes
    22  
    23  Aliases:
    24    rm, remove
    25  
    26  Options:
    27    -f, --force  Force the removal of one or more volumes
    28        --help   Print usage
    29  ```
    30  
    31  ## Description
    32  
    33  Remove one or more volumes. You cannot remove a volume that is in use by a container.
    34  
    35  ## Examples
    36  
    37  ```bash
    38    $ docker volume rm hello
    39    hello
    40  ```
    41  
    42  ## Related commands
    43  
    44  * [volume create](volume_create.md)
    45  * [volume inspect](volume_inspect.md)
    46  * [volume ls](volume_ls.md)
    47  * [volume prune](volume_prune.md)
    48  * [Understand Data Volumes](https://docs.docker.com/engine/tutorials/dockervolumes/)