Magento 2 Developement

Magento 2: How to uninstall module

You can install module in magento in two ways: via composer and manual installation. If you no longer need a certain extension you may wish to uninstall it.

If you installed it manually:

  • remove the folder app/code/<Vendor>/<Module>
  • drop module tables from database
  • remove the config settings.
  • remove the module <Vendor>_<Module> from app/etc/config.php
  • remove the module <Vendor>_<Module> from table setup_module

If you installed it via composer:

run this in console

There is a known bug that module uninstall never completes – magento2/issues/3544. The solution is to run composer update in an other console.

Disable module

If you want to just disable module – check our How to disable module in Magento 2 tutorial.

One thought on “Magento 2: How to uninstall module

  1. Also it’s worth looking in the eav_attributes table in the source_model column for any references to the module you are removing. I found references here that were preventing my category pages from loading in the admin section.

Leave a Reply

Your email address will not be published. Required fields are marked *