buildah-rmi(1) General Commands Manual buildah-rmi(1)

# [NAME](#NAME)

buildah-prune - Cleanup intermediate images as well as build and mount cache.

# [SYNOPSIS](#SYNOPSIS)

**buildah prune**

# [DESCRIPTION](#DESCRIPTION)

Cleanup intermediate images as well as build and mount cache.

# [OPTIONS](#OPTIONS)

**--all**, **-a**

All local images will be removed from the system that do not have containers using the image as a reference image.

**--force**, **-f**

This option will cause Buildah to remove all containers that are using the image before removing the image from the system.

# [EXAMPLE](#EXAMPLE)

buildah prune

buildah prune --force

# [SEE ALSO](#SEE_ALSO)

[buildah(1)](/man/enterprise-packages/buildah/buildah.1), [containers-registries.conf(5)](/man/enterprise-packages/buildah/containers-registries.conf.5), [containers-storage.conf(5)](/man/enterprise-packages/buildah/containers-storage.conf.5)

Jan 2023 buildah

---

Document: buildah-prune(1) from buildah 1.45.2-r1 (Chainguard OS)
Source: https://github.com/containers/buildah
