Skip to content

grog clean

grog clean

Removes all cached artifacts.

Synopsis

Removes cached artifacts from the workspace or the entire grog cache. By default, only the workspace-specific cache is cleaned. Use the —expunge flag to remove all cached artifacts.

grog clean [flags]

Examples

grog clean # Clean the workspace cache
grog clean --expunge # Clean the entire grog cache

Options

-e, --expunge Expunge all cached artifacts
-h, --help help for clean

Options inherited from parent commands

-a, --all-platforms Select all platforms (bypasses platform selectors)
--color string Set color output (yes, no, or auto) (default "auto")
--debug Enable debug logging
--disable-tea Disable interactive TUI (Bubble Tea)
--enable-cache Enable cache (default true)
--exclude-tag strings Exclude targets by tag. Can be used multiple times. Example: --exclude-tag=foo --exclude-tag=bar
--fail-fast Fail fast on first error
--load-outputs string Level of output loading for cached targets. One of: all, minimal. (default "all")
--log-level string Set log level (trace, debug, info, warn, error)
--platform string Force a specific platform in the form os/arch
--profile string Select a configuration profile to use
--skip-workspace-lock Skip the workspace level lock (DANGEROUS: may corrupt the cache)
--stream-logs Forward all target build/test logs to stdout/-err
--tag strings Filter targets by tag. Can be used multiple times. Example: --tag=foo --tag=bar
-v, --verbose count Set verbosity level (-v, -vv)

SEE ALSO

Auto generated by spf13/cobra on 21-Oct-2025