Skip to content

Instantly share code, notes, and snippets.

@phlbnks
Last active December 12, 2018 11:01
Show Gist options
  • Save phlbnks/37d91508a58852dba8946d3599448e27 to your computer and use it in GitHub Desktop.
Save phlbnks/37d91508a58852dba8946d3599448e27 to your computer and use it in GitHub Desktop.
Sledgehammer removal of valet(+)
#!/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
@phlbnks
Copy link
Author

phlbnks commented Dec 12, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment