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

     1  % podman-system-prune(1)
     2  
     3  ## NAME
     4  podman\-system\-prune - Remove all unused container, image and volume data
     5  
     6  ## SYNOPSIS
     7  **podman system prune** [*options*]
     8  
     9  ## DESCRIPTION
    10  **podman system prune** removes all unused containers (both dangling and unreferenced), pods and optionally, volumes from local storage.
    11  
    12  With the **--all** option, you can delete all unused images.  Unused images are dangling images as well as any image that does not have any containers based on it.
    13  
    14  By default, volumes are not removed to prevent important data from being deleted if there is currently no container using the volume. Use the **--volumes** flag when running the command to prune volumes as well.
    15  
    16  ## OPTIONS
    17  #### **--all**, **-a**
    18  
    19  Remove all unused images not just dangling ones.
    20  
    21  #### **--force**, **-f**
    22  
    23  Do not prompt for confirmation
    24  
    25  #### **--help**, **-h**
    26  
    27  Print usage statement
    28  
    29  #### **--volumes**
    30  
    31  Prune volumes currently unused by any container
    32  
    33  ## SEE ALSO
    34  podman(1), podman-image-prune(1), podman-container-prune(1), podman-pod-prune(1), podman-volume-prune(1)
    35  
    36  ## HISTORY
    37  February 2019, Originally compiled by Dan Walsh (dwalsh at redhat dot com)