5

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

1 Answer 1

9

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
2
  • Glad it helped, please accept the answer if found useful.
    – Devtype
    Dec 13, 2016 at 14:34
  • Thank you for answering this. If you could kindly help me understand When does one use composer remove <module_name >? Mar 2, 2018 at 14:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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