How to uninstall module Magento 2?

by aniya.jaskolski , in category: PHP CMS , 8 months ago

How to uninstall module Magento 2?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer


by denis , 4 months ago

@aniya.jaskolski To uninstall a module in Magento 2, you need to follow these steps:

  • Log in to the Magento server as a user with command-line access and change to the directory that contains the Magento software.
  • Run the following command to disable the module:
php bin/magento module:disable [Module_Name]
  • Run the following command to remove the module's code from the system:
php bin/magento setup:upgrade
  • Verify that the module has been uninstalled by running the following command:
php bin/magento module:status

This command will display a list of all installed modules, and the module you just uninstalled should not be listed.

Note: These instructions assume that you are using the default file system for Magento 2. If you are using a different file system, such as Redis, you may need to use different commands to disable and uninstall the module.