buildx/docs/reference/buildx_history_rm.md
sarahsanders-docker 6ed39b2618
fix examples and headings
Signed-off-by: sarahsanders-docker <sarah.sanders@docker.com>
2025-05-05 14:32:03 -07:00

1.2 KiB
Raw Blame History

docker buildx history rm

Remove build records

Options

Name Type Default Description
--all bool Remove all build records
--builder string Override the configured builder instance
-D, --debug bool Enable debug logging

Description

Remove one or more build records from the current builders history. You can remove specific builds by ID or offset, or delete all records at once using the --all flag.

Examples

Remove a specific build

# Using a build ID
docker buildx history rm qu2gsuo8ejqrwdfii23xkkckt

# Or using a relative offset
docker buildx history rm ^1

Remove multiple builds

# Using build IDs
docker buildx history rm qu2gsuo8ejqrwdfii23xkkckt qsiifiuf1ad9pa9qvppc0z1l3

# Or using relative offsets
docker buildx history rm ^1 ^2

Remove all build records from the current builder

docker buildx history rm --all