0

I installed a Magento 2 module from here using this link https://github.com/Sebwite/magento2-category-sidebar. using these commands

Include the repository: composer require sebwite/magento2-category-sidebar
Enable the extension: php bin/magento --clear-static-content module:enable Sebwite_Sidebar
Upgrade db scheme: php bin/magento setup:upgrade
Clear cache

But now I want to uninstall it using

sudo php bin/magento module:uninstall -r Sebwite_Sidebar

it says

Sebwite_Sidebar is not an installed composer package

how to remove its structure database Mean to say completely remove it

  • how do you installed it if you don't executed composer update? – LucScu Sep 12 '17 at 7:58
  • @LucaS composer require – Learner Sep 12 '17 at 8:12
  • sorry i make confusion with --no-update option – LucScu Sep 12 '17 at 8:22
  • @LucaS then you know any way to remove it ? – Learner Sep 12 '17 at 8:27
  • i tried with a module installed with composer and magento uninstall command works correctly....i read your comment below, great you resolve it – LucScu Sep 12 '17 at 8:43
1

If you installed the module manually: remove the folder app/code/<Vendor>/<Module> drop module tables from database remove the config settings.

DELETE FROM core_config_data WHERE path LIKE 'vendor_module/%'

remove the module <Vendor>_<Module> from app/etc/config.php

remove the module <Vendor>_<Module> from table setup_module

DELETE FROM setup_module WHERE module='<Vendor>_<Module>'

Then next follow the command upgrade and compile.

If you installed it via composer:

run this in console:

php bin/magento module:uninstall -r <Vendor>_<Module>

Thanks.

  • I used composer require sebwite/magento2-category-sidebar that command to install it . And where I can execute these command in magento2 ? – Learner Sep 12 '17 at 8:25
  • Please find the updated answer at last line – shivashankar m Sep 12 '17 at 8:39
  • Sebwite_Sidebar is not an installed composer package . Now I got this – Learner Sep 12 '17 at 8:41
  • php bin/magento module:uninstall -r Sebwite_Sidebar – shivashankar m Sep 12 '17 at 8:51
  • still same error – Learner Sep 12 '17 at 8:58
1

I got deleted by doing this.

Delete vendor/Sebwite_Sidebar
run command composer dump-autoload
run command php bin/magento setup:upgrade
0

For all future people who comes here, note that there is a bug on uninstall magento command line tool, see https://github.com/magento/magento2/issues/5797

0

This module has no setup script, so it does not adds information to tables, except the core_config table. I think you should uninstall it using regular composer command php composer.phar remove vendor/package vendor/package2 as described in the docs and then run php bin/magento setup:upgrade and other commands if needed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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