---
name: "buildah-prune"
section: "1"
platform: "linux"
package: "buildah"
version: "1:1.45.2-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/buildah-prune"
---

# buildah-prune(1)

Cleanup intermediate images as well as build and mount cache.

## NAME

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

## SYNOPSIS

**buildah prune**

## DESCRIPTION

Cleanup intermediate images as well as build and mount cache.

## 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

buildah prune

buildah prune --force

## SEE ALSO

[buildah(1)](/buildah/1.md), [containers-registries.conf(5)](/containers-registries.conf/5.md), [containers-storage.conf(5)](/containers-storage.conf/5.md)
