brew clean for leftovers
brew autoremove for removing unused dependencies
brew bundle dump for recreating a Brewfile (and see only the bundles)
Brewfile example
tap "cloudflare/cloudflare"
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/core"
tap "weaveworks/tap"
brew "awscli"
brew "eksctl"
brew "colima"
brew "helm"
brew "jq"
brew "k9s"
brew "kompose"
brew "kubernetes-cli"
brew "kubectx"
brew "rclone"
brew "saml2aws"
brew "cloudflare/cloudflare/cloudflared"
brew "terraform"
brew "azure-cli"
cask "blobsaver"
cask "google-cloud-sdk"
cask "middleclick"
cask "vagrant"
brew bundle --file Brewfile for reinstalling the previous list on a new computer