How do i uninstall composer on Mac?

If you ran composer-setup.php without any additional arguments it should be in a file called composer.phar in the directory where you ran those commands.

Delete that file and you're done.


You followed instructions on the composer website and probably installed composer globally if so just use:

1.  cd usr/local/bin
2.  rm -r composer

If you have put composer somewhere else then find it first

1.  which composer

this will return the current path like folder1/folder2/composerand then the same steps:

1.  cd folder1/folder2
2.  rm -r composer

You also may want to delete rest of composer files. Simply go with:

1. cd /
2. cd Users/<hereYourUserName>
3. rm -r .composer 

Tags:

Composer Php