How to Remove or Uninstall Magento 2 Extension

In this post, we will discuss how to remove or uninstall magento extension from magento 2 website. During uninstallation, you can create backups first so you can recover the data at a later time if there is required in future. You can remove extension depending on installation method. You need to uninstall or disable magento 2 extension manually or via composer. Both methods are explained below:

1. Manually Uninstall or Remove:

Step 1: Connect via SSH to your magento installation and execute below commands:

Step 2: Remove extension files

2. Via Composer Uninstall or Remove:

Step 1: Connect via SSH to your magneto installation and execute below commands:

– Note1: you can find the exact match for ExtensionProvider and ExtensionName in composer.json file associated with the extension.

– Note2: you can find the exact match for VendorName and VendorExtension in composer.json file associated with the extension.or under your Magento installation/com/vendor//

– Note3: You may be asked for composer username and password when uninstalling, you will be able to find them under var/composer_home/auth.json