To disable a module in Magento 2, follow these steps:
Step 1: Access the Magento 2 Admin Panel
Open your web browser and enter the URL of your Magento 2 store followed by “/admin” (e.g., www.yourstore.com/admin). This will take you to the login page of the Magento 2 Admin Panel.
Step 2: Log in to the Admin Panel
Enter your admin username and password to log in to the Magento 2 Admin Panel.
Step 3: Navigate to the System Configuration Page
Once you are logged in, navigate to “Stores” in the main menu on the left-hand side of the Admin Panel. Under “Stores,” click on “Configuration.” This will open the System Configuration page.
Step 4: Disable the Module
On the System Configuration page, locate the “Advanced” section in the left-hand menu and click on it. Then, click on “Advanced” under the “Advanced” section. This will open the module list.
In the module list, you will see a list of all installed modules in your Magento 2 store. Look for the module that you want to disable.
To disable the module, find the corresponding module name in the list and set its value to “Disable” by clicking on the drop-down menu next to the module name. Once you set it to “Disable,” the module will be disabled.
Step 5: Save the Configuration
After disabling the module, click on the “Save Config” button at the top right of the page to save the configuration changes.
Step 6: Clear the Cache (if necessary)
If you have enabled caching in your Magento 2 store, you may need to clear the cache for the changes to take effect. To do this, navigate to “System” in the main menu, click on “Cache Management,” and then click on the “Flush Magento Cache” button.
Step 7: Verify the Module Disablement
After saving the configuration changes and clearing the cache (if necessary), the module should be successfully disabled. You can verify this by visiting the front-end or back-end of your Magento 2 store and confirming that the module’s functionality is no longer active.
Congratulations! You have successfully disabled a module in Magento 2. If you ever need to re-enable the module, simply follow the same steps and set the value of the module to “Enable” instead of “Disable” in the System Configuration.