Skip to main content
info

Documentation is currently for moon v2 and latest proto. Documentation for moon v1 has been frozen and can be found here.

clean

The proto clean command can be used to uninstall stale and unused tools, plugins, and more. By default, it will remove items that haven't been used in the last 30 days.

$ proto clean

Furthermore, the command can be used to target a specific artifact type.

$ proto clean plugins

Cleaning stale tools does not remove records from lockfiles, as the version may still be required by a configuration, or in use on other machines.

Arguments

  • [target] - Type of target. Accepts cache, plugins, temp, or tools. v0.44.0

Options

  • --days - Number of days before a tool is considered stale.
  • --json - Print the clean result in JSON format. v0.44.0
  • --yes - Avoid and confirm all prompts.