How to install & uninstall extension in magento

Install Extension Guide

First of all unzip the extension zip file and open registration.php

You will see something like below

\Magento\Framework\Component\ComponentRegistrar::register(
    \Magento\Framework\Component\ComponentRegistrar::MODULE,
    'Magebees_Products',
    __DIR__
);

It means you need to create the directory below
app/code/Magebees/Products

After making it, you need to unzip the extension zip file under in this directory.

Then Open CMD and run the commands below.

php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush
php bin/magento indexer:reindex
php bin/magento module:enable Magebees_Products
php bin/magento setup:upgrade
php bin/magento setup:di:compile

Uninstall Extension Guide

Step 1: Connect via SSH/CLI to the root of your magento installation (this is the folder that has the app folder in it) and check the list of all modules including their enable / disable status

php bin/magento module:status

Step 2: Disable the module by executing below commands:

php bin/magento module:disable <ExtensionProvider_ExtensionName> --clear-static-content
php bin/magento setup:upgrade

Step 3: Remove extension files

cd app/code//
rm -rf