0

I need to uninstall one of the modules.

I need to drop the column from the database

How can I run this command via ssh to remove it?

I tried on this way not working with me.

1- sudo mysql -u root -p

2- DELETE FROM setup_module WHERE module='_'

2 Answers 2

0

Please Delete module from your directory

app/code/Your/Module/

and run php bin/magento setup:upgrade

Your module's entry will be removed automatically

cheers!!!

9
  • I did but I need to reinstall the module because I installed it on the wrong directory on the first time. when I reinstall it again I get the same error
    – mrwho
    Commented Dec 14, 2021 at 8:01
  • first do step as I mentioned then try to install again on proper direcory Commented Dec 14, 2021 at 8:12
  • I get the same error ?? which error?? Commented Dec 14, 2021 at 8:12
  • MT Email 2 exception(s): Exception #0 (Zend_Db_Statement_Exception): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'is_mt_email' in 'where clause', query was: SELECT COUNT() FROM email_template AS main_table WHERE (is_mt_email = '1') Exception #1 (PDOException): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'is_mt_email' in 'where clause' Exception #0 (Zend_Db_Statement_Exception): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'is_mt_email' in 'where clause', query was: SELECT COUNT() FROM email_template AS main_table WHERE (is_mt_email = '1') <pre> ...
    – mrwho
    Commented Dec 14, 2021 at 8:18
  • 1
    mysql -u root -p then enter your password of database user. then type use your_database then run your delete query Commented Dec 15, 2021 at 5:40
0

Please visit the dev docs link

https://devdocs.magento.com/guides/v2.4/install-gde/install/cli/install-cli-uninstall-mods.html

if you installed the extension via composer you have to execute:

php bin/magento module:uninstall Vendor_Module

if your extension is placed under the app/code directory then you have to remove the extension from your server using the below command

rm -rf app/code/Vendor/Module

and execute upgrade command

php bin/magento setup:upgrade

Thanks!!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.