How to disable an extension for Magento 2
Need to temporarily disable a module for troubleshooting, or permanently remove it from your store? This guide covers both the CLI method (recommended) and the alternative approach through the admin panel. Disabling is non-destructive - your configuration and data remain intact.
Quick Method (CLI)
Run this command from your Magento root directory:
bin/magento module:disable Vendor_ModuleName
bin/magento setup:upgrade
bin/magento cache:flush
Example - Disabling Google Shopping:
bin/magento module:disable Magmodules_GoogleShopping
bin/magento setup:upgrade
bin/magento cache:flush
Finding the Module Name
Not sure of the exact module name? List all modules:
bin/magento module:status
This shows enabled and disabled modules. Module names follow the Vendor_ModuleName format.
To find Magmodules extensions specifically:
bin/magento module:status | grep Magmodules
Re-enabling a Module
To enable a previously disabled module:
bin/magento module:enable Vendor_ModuleName
bin/magento setup:upgrade
bin/magento cache:flush
Alternative: Admin Panel
If you prefer a graphical interface:
- Go to System → Web Setup Wizard → Component Manager
- Find the module in the list
- Click the dropdown and select Disable
- Follow the wizard steps
Note: The Web Setup Wizard requires specific server permissions and isn't available on all hosting environments. The CLI method works everywhere.
Complete Removal
To fully remove a module (not just disable):
bin/magento module:disable Vendor_ModuleName
composer remove vendor/package-name
bin/magento setup:upgrade
bin/magento cache:flush
Find the composer package name in the module's composer.json or run composer show | grep modulename.
Troubleshooting
"Module does not exist"
Check the exact module name with bin/magento module:status. Names are case-sensitive.
Deployment mode errors
In production mode, you may need to run bin/magento setup:di:compile and bin/magento setup:static-content:deploy after disabling modules.
Database errors after disable
Run bin/magento setup:upgrade to ensure database schema is updated.
Need More Help?
Documentation:
- All Help Articles - Complete documentation overview
Support:
- Contact Support - Get help from our team