Before you start
First inspect the package and preview what Homebrew would remove. A dependent formula may prevent removal; investigate the dependency rather than forcing it.
Steps
When the preview matches your intention, uninstall the formula. Removing a package is different from deleting its user data; check the package documentation for data locations.
brew info wget
brew uninstall --dry-run wget
brew uninstall wgetUsing Casklane
In Casklane, open Formulae, select the installed package, and choose Uninstall. Review the confirmation and any listed dependents before continuing.