Remove unused brew packages with Brew Autoremove. Clean up your system and free up disk space after uninstalling software. Free online tool, no registration required.
brew autoremove
Remove unused formulae previously installed as dependencies. More information: https://docs.brew.sh/Manpage#autoremove---dry-run.
- Remove all unused formulae:
brew autoremove
- Print what would be removed, but don’t actually remove anything:
brew autoremove {{[-n|--dry-run]}}