{"tool":"brew","tool_display":"Brew","intent":"cleanup-all-packages","intent_display":"cleanup all packages","title":"Brew Command: cleanup all packages","command_string":"brew cleanup","raw_command_string":"brew cleanup","description":"Exact CLI syntax to cleanup all packages using Brew.","usage_scenario":"When ensuring the environment is up to date and minimizing storage consumption by removing legacy packages.","scenario_context":"Regularly clean up your Brew setup to reclaim disk space efficiently.","simulated_output":"==> Cleaning up /usr/local/Cellar...\nRemoving: /usr/local/Cellar/package1, version 1.0.0\nRemoving: /usr/local/Cellar/package2, version 2.3.5\n==> Cleaning up Homebrew's cache:\nremoved 5 files from /Users/user/Library/Caches/Homebrew","how_to_steps":["Run the command: brew cleanup","Verify cleanup by checking the cache size: du -sh /Users/user/Library/Caches/Homebrew","Ensure that unneeded packages are listed no longer with: brew list"],"inferred_category":"Package Management","canonical_url":"https://www.syntaxstandard.com/brew/cleanup-all-packages"}