Question

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

Was it helpful?

Solution 2

I got deleted by doing this.

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

OTHER TIPS

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.

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

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.

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
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top