instruction: Explain docker buildx prune
output: Back
  Ask AI
  Start typing to search or try
  Contact support
  Get started
  Guides
  Manuals
  docker buildx prune
  Description
  Remove build cache
  Usage
  docker buildx prune
  Description
  Clears the build cache of the selected builder.
  You can finely control what cache data is kept using:
  --filter=until=<duration>
  flag to keep images that have been used in
  the last
  <duration>
  time.
  <duration>
  is a duration string, e.g.
  2h30m
  , with allowable
  units of
  (h)ours
  (m)inutes
  (s)econds
  --keep-storage=<size>
  flag to keep
  <size>
  bytes of data in the cache.
  <size>
  is a human-readable memory string, e.g.
  128mb
  , etc. Units
  are case-insensitive.
  --all
  flag to allow clearing internal helper images and frontend images
  set using the
  #syntax=
  directive or the
  BUILDKIT_SYNTAX
  build argument.
  Options
  Option
  Default
  Description
  -a, --all
  Include internal/frontend images
  --filter
  Provide filter values (e.g.,
  until=24h
  -f, --force
  Do not prompt for confirmation
  --max-used-space
  Maximum amount of disk space allowed to keep for cache
  --min-free-space
  Target amount of free disk space after pruning
  --reserved-space
  Amount of disk space always allowed to keep for cache
  --verbose
  Provide a more verbose output
  Examples
  Override the configured builder instance (--builder)
  Same as
  buildx --builder