.nh .TH podman\-system\-prune(1) .SH NAME .PP podman\-system\-prune \- Remove all unused pod, container, image and volume data .SH SYNOPSIS .PP \fBpodman system prune\fP [\fIoptions\fP] .SH DESCRIPTION .PP \fBpodman system prune\fP removes all unused containers (both dangling and unreferenced), pods and optionally, volumes from local storage. .PP With the \fB\-\-all\fP 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. .PP By default, volumes are not removed to prevent important data from being deleted if there is currently no container using the volume. Use the \fB\-\-volumes\fP flag when running the command to prune volumes as well. .SH OPTIONS .SS \fB\-\-all\fP, \fB\-a\fP .PP Recursively remove all unused pod, container, image and volume data (Maximum 50 iterations.) .SS \fB\-\-filter\fP=\fIfilters\fP .PP Provide filter values. .PP The \-\-filter flag format is of “key=value”. If there is more than one filter, then pass multiple flags (e.g., \-\-filter "foo=bar" \-\-filter "bif=baz") .PP Supported filters: .RS .IP \(bu 2 \fB\fCuntil\fR (\fItimestamp\fP) \- only remove containers and images created before given timestamp .IP \(bu 2 \fB\fClabel\fR (label=\fIkey\fP, label=\fIkey=value\fP, label!=\fIkey\fP, or label!=\fIkey=value\fP) \- only remove containers and images, with (or without, in case label!=... is used) the specified labels. .RE .PP The until filter can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. 10m, 1h30m) computed relative to the machine’s time. .PP The label filter accepts two formats. One is the label=... (label=\fIkey\fP or label=\fIkey=value\fP), which removes containers and images with the specified labels. The other format is the label!=... (label!=\fIkey\fP or label!=\fIkey=value\fP), which removes containers and images without the specified labels. .SS \fB\-\-force\fP, \fB\-f\fP .PP Do not prompt for confirmation .SS \fB\-\-help\fP, \fB\-h\fP .PP Print usage statement .SS \fB\-\-volumes\fP .PP Prune volumes currently unused by any container .SH SEE ALSO .PP podman(1), podman\-image\-prune(1), podman\-container\-prune(1), podman\-pod\-prune(1), podman\-volume\-prune(1) .SH HISTORY .PP February 2019, Originally compiled by Dan Walsh (dwalsh at redhat dot com) December 2020, converted filter information from docs.docker.com documentation by Dan Walsh (dwalsh at redhat dot com)