Skip to content

Instantly share code, notes, and snippets.

@emirpprime emirpprime/remove_valet.sh
Last active Dec 12, 2018

Embed
What would you like to do?
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
@emirpprime

This comment has been minimized.

Copy link
Owner Author

emirpprime commented Dec 12, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.