Magento 2 Extension Disable
- First of all, go to /var/www/html directory:
php bin/magento maintenance:enable to make the site on maintenance mode. - Find out the extension you want to remove from the site.
- Run php bin/magento module:status command to see list of active and deactivate extensions.
- Select the extension you want to remove and find out the status of the extension. If the extension
is on the active status, please deactivate that by running
php bin/magento module:disable Vendor_Modulename –clear-static-content. - Then check again the module status of that extension is now on deactivate status or not.
- After
that remove the related file of that extension and run these commands sequentially as bellow:
- php bin/magento setup:upgrade
- php bin/magento setup:di:compile
- php bin/magento setup:static-content:deploy –f
- php bin/magento indexer:reindex
- php bin/magento cache:flush
- chmod -Rf 777 generated var pub
- php bin/magento maintenance:disable
After that restore CSS