.nh .TH buildah-rmi "1" "Jan 2023" "buildah" .SH NAME .PP buildah-prune - Cleanup intermediate images as well as build and mount cache. .SH SYNOPSIS .PP \fBbuildah prune\fP .SH DESCRIPTION .PP Cleanup intermediate images as well as build and mount cache. .SH OPTIONS .PP \fB--all\fP, \fB-a\fP .PP All local images will be removed from the system that do not have containers using the image as a reference image. .PP \fB--force\fP, \fB-f\fP .PP This option will cause Buildah to remove all containers that are using the image before removing the image from the system. .SH EXAMPLE .PP buildah prune .PP buildah prune --force .SH SEE ALSO .PP buildah(1), containers-registries.conf(5), containers-storage.conf(5)