I currently have the script to try and uninstall python3 in Homebrew:
sudo brew uninstall python3
and keep getting the error "sudo: brew: command not found". I've also tried the command
/opt/homebrew/bin/brew uninstall python3
and run into the error "Running Homebrew as root is extremely dangerous and no longer supported.
As Homebrew does not drop privileges on installation you would be giving all build scripts full access to your system."
I'm certain that Homebrew and python3 (via Homebrew) is installed on the device I'm pushing this script to. Is there another way I should be running uninstall commands for Homebrew?