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
    Commented 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 >? Commented Mar 2, 2018 at 14:08

Your Answer

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

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