Last active
December 12, 2018 11:01
-
-
Save phlbnks/37d91508a58852dba8946d3599448e27 to your computer and use it in GitHub Desktop.
Sledgehammer removal of valet(+)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
valet stop | |
composer global remove laravel/valet | |
composer global remove weprovide/valet-plus | |
brew services stop --all | |
brew uninstall dnsmasq | |
sudo rm -rf /usr/local/etc/dnsmasq.conf | |
sudo rm -rf /usr/local/Cellar/dnsmasq | |
sudo rm -rf /usr/local/opt/dnsmasq | |
sudo rm -rf /etc/resolver | |
brew uninstall nginx | |
sudo rm -rf /usr/local/etc/nginx/ | |
sudo rm -rf /usr/local/Cellar/nginx | |
sudo rm -rf /usr/local/opt/nginx | |
brew uninstall php | |
brew uninstall php@7.0 | |
brew uninstall php@7.1 | |
brew uninstall php@7.2 | |
brew uninstall php@7.3 | |
sudo rm -rf /usr/local/etc/php | |
sudo rm -rf /usr/local/Cellar/php@* | |
sudo rm -rf /usr/local/opt/php* | |
sudo rm -rf /usr/local/sbin/php* | |
pecl uninstall apcu | |
pecl uninstall apcu_bc | |
brew uninstall mysql | |
sudo rm /usr/local/etc/my.cnf | |
sudo rm -rf /usr/local/var/mysql | |
sudo rm -rf /usr/local/Cellar/mysql* | |
sudo rm -rf /usr/local/var/mysql | |
brew uninstall mailhog | |
brew uninstall redis | |
sudo rm -rf ~/.valet | |
sudo rm -rf ~/.composer/vendor/weprovide/ | |
sudo rm ~/.bash_profile | |
brew doctor | |
brew cleanup | |
brew prune |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Warning - this will delete ~/.bash_profile!
Run with: bash -c "$( curl -fsSL https://gist.githubusercontent.com/emirpprime/37d91508a58852dba8946d3599448e27/raw/507da1b123580f3befb0ec6c2ce0e1ffa11685af/remove_valet.sh )"