1

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

6
  • how do you installed it if you don't executed composer update?
    – LucScu
    Commented Sep 12, 2017 at 7:58
  • @LucaS composer require
    – Learner
    Commented Sep 12, 2017 at 8:12
  • sorry i make confusion with --no-update option
    – LucScu
    Commented Sep 12, 2017 at 8:22
  • @LucaS then you know any way to remove it ?
    – Learner
    Commented Sep 12, 2017 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
    Commented Sep 12, 2017 at 8:43

5 Answers 5

2

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.

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

I got deleted by doing this.

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

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

1

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.

1

Just Delete that entire module file(Directory) in your text editor and follow the commands.

1.Flush Cache
php bin/magento c:f
2. Clean Cache (optional)
php bin/magento c:c
3. Setup Upgrade
php bin/magento setup:upgrade

Check it by:

php bin/magento module:status

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.