Not registered yet?
Register now! It is easy and done in 1 minute and gives you access to special discounts and much more!
By Paul Paku
Does composer remove drupal/module actually uninstall the module first, especially in multi-site environments?
composer remove drupal/module
On the other hand, does composer require "enable" the given module for all sites?
No, Composer doesn’t install or uninstall modules in the site itself.
It’s a dependency manager; all it does is compute your requirements, then download them.
You might be able to add a post install/update command to automate it, but trying to make it generic would probably be a pain.
So it is possible to crush the site letting composer remove installed module ?
Yes, it would be like deleting a module folder without uninstalling it.