Skip to content

Instantly share code, notes, and snippets.

@itsmikita
Last active April 23, 2024 12:09
Show Gist options
  • Save itsmikita/37a6460998e71018f883f03c13b1380a to your computer and use it in GitHub Desktop.
Save itsmikita/37a6460998e71018f883f03c13b1380a to your computer and use it in GitHub Desktop.
Uninstall Laravel/Valet from MacOS completely

Do the below and never try this again!

valet uninstall
composer global remove laravel/valet
sudo rm -rfv /usr/local/bin/valet
sudo rm -rfv ~/.valet
brew rm -rfv nginx php@7.2 php@7.3 dnsmasq
sudo rm -rfv /usr/local/Cellar/dnsmasq
sudo rm -rfv /usr/local/Cellar/nginx
sudo rm -rfv /usr/local/Cellar/php*
sudo rm -rfv /etc/resolver/test
@yovkov
Copy link

yovkov commented Apr 22, 2024

Don't forget that after uninstalling you might have some daemon services running - fx. nginx - so make sure to stop them if you've uninstalled them.

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