There is method of installing drush via composer:
composer global require drush/drush:dev-master
But how to 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.