brew autoremove

Remove unused formulae previously installed as dependencies. More information: https://docs.brew.sh/Manpage#autoremove---dry-run.

brew autoremove

brew autoremove --dry-run