How to disable an extension for 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
Run;
| 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.