mac remove php 7.2 code example Example: uninstall php 8 mac brew uninstall php@8.0 or brew uninstall --force php@7.3