how to uninstall the app or packages in the Home-brew
Homebrew packages can be uninstalled with
brew uninstall PACKAGE-NAME

Homebrew can‘t know which packages you don‘t need anymore, you have to decide yourself.