There is a method of installing Drush via Composer.
composer global require drush/drush:dev-master
How do I uninstall it using Composer?
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.Sign up to join this community
It seems there is no single remove command, so you need to:
composer.json file, e.g.
and remove line containing drush. Save the file.
Update Composer PHP packages by:
composer global update
It will remove a globally installed
If you don't have
composer command in your PATH, try
php composer.phar instead.