How to disable an extension for Magento 2

General help articles for Magento® 2. We've tried our best in the preparation of this help article. If you do not find the answer you were looking for, you can always send us a message through this form.

Disable extension in Magento 2

You can disable the extension through CLI or the Component Manager.

Disable through Composer/CLI
To disable the extension by CLI run the following command;
| php <your Magento install dir>/bin/magento module:disable VendorName_ModuleName
| php bin/magento cache:clean to clean the caches.

For example, if you want to disable the Google Shopping you can run the following command in the Magento 2 root;
| php bin/magento module:disable Magmodules_GoogleShopping
| php bin/magento cache:clean
| php bin/magento cache:flush

Disable through the Component Manager
Use the Magento 2 Component Manager and mark module as Enabled / Disabled with the appropriate action near the module’s name.
Refresh cache and the extension will be either enabled or disabled on your store.