3

How to Uninstall modules "ub data migration" in Magento 2 using composer

6

You can uninstall a module through composer if it was installed using composer. If yes then issue command:

php bin/magento module:uninstall -r <Vendor>_<Module>

-r flag removes module data. then issue:

php bin/magento setup:upgrade

If module was not installed through composer:

  • remove the module directory app/code/<Vendor>/<Module>
  • drop module database tables (if it created any)
  • remove entry from core_config_data and setup_module tables

Run command

php bin/magento setup:upgrade
  • Glad it helped, please accept the answer if found useful. – Devtype Dec 13 '16 at 14:34
  • Thank you for answering this. If you could kindly help me understand When does one use composer remove <module_name >? – Mohammed Joraid Mar 2 '18 at 14:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.