github.com/containers/podman/v2@v2.2.2-0.20210501105131-c1e07d070c4c/docs/source/markdown/podman-volume-rm.1.md (about)

     1  % podman-volume-rm(1)
     2  
     3  ## NAME
     4  podman\-volume\-rm - Remove one or more volumes
     5  
     6  ## SYNOPSIS
     7  **podman volume rm** [*options*] *volume* [...]
     8  
     9  ## DESCRIPTION
    10  
    11  Removes one or more volumes. Only volumes that are not being used will be removed.
    12  If a volume is being used by a container, an error will be returned unless the **--force**
    13  flag is being used. To remove all volumes, use the **--all** flag.
    14  Volumes can be removed individually by providing their full name or a unique partial name.
    15  
    16  ## OPTIONS
    17  
    18  #### **--all**, **-a**
    19  
    20  Remove all volumes.
    21  
    22  #### **--force**, **-f**
    23  
    24  Remove a volume by force.
    25  If it is being used by containers, the containers will be removed first.
    26  
    27  #### **--help**
    28  
    29  Print usage statement
    30  
    31  
    32  ## EXAMPLES
    33  
    34  ```
    35  $ podman volume rm myvol1 myvol2
    36  
    37  $ podman volume rm --all
    38  
    39  $ podman volume rm --force myvol
    40  ```
    41  
    42  ## Exit Status
    43    **0**   All specified volumes removed
    44  
    45    **1**   One of the specified volumes did not exist, and no other failures
    46  
    47    **2**   One of the specified volumes is being used by a container
    48  
    49    **125** The command fails for any other reason
    50  
    51  ## SEE ALSO
    52  podman-volume(1)
    53  
    54  ## HISTORY
    55  November 2018, Originally compiled by Urvashi Mohnani <umohnani@redhat.com>