Hello Magento Friends,

Today I will be mentioning a much-needed topic for all the Magento 2 merchants. How can I Uninstall and Remove a Magento 2 Extension?

Quick Summary:

Extensions help to add functionalities to your Magento 2 store apart from the default settings. Installing Magento 2 extensions facilitates enhancing store performance. Different extension holds different operational capabilities. Thus, there is a number of extensions installed in your Magento 2 store. Make sure the extensions are compatible with the latest version Magento 2.4.

A time may arise where you need to uninstall the extension due to any reason. Too many extensions affect the performance of the store, so you want to uninstall the unwanted extensions. Also, when you find two or more extensions that have similar features, you want to uninstall one from it. The other reason may include, the extensions that are no longer needed in your store needs to be removed.

Hence, for the smooth performance of your Magento 2 website, completely remove or uninstall the not required extensions. One can Uninstall or Remove a Magento 2 Extension in two ways – Manually and Using Composer. Let’s see both the ways in detail 

Steps to Uninstall or Remove a Magento 2 Extension – Manually

Step 1:  Firstly you have to check the extensions you need to uninstall. So, connect through SSH to the root of your Magento installation folder and check the list of all extensions installed with the help of the following command.

Step 2: Now, for uninstalling the extension disable that extension module with the help of the below commands.

Step 3: Remove the extension using the below code.

Step 4: Run the following code after the completion of the above step.

Illustration: By the following illustration code of uninstalling my module you will get a clear idea about the steps to uninstall the extension.

Steps to Uninstall or Remove a Magento 2 Extension – Using Composer

Step 1: Firstly you have to check the extensions you need to uninstall. So, connect through SSH to the root of your Magento installation folder and check the list of all extensions installed with the help of the following command.

Step 2: Now, for uninstalling the extension disable that extension module with the help of the given below commands. Just apply to your system by filling in the appropriate details.

– ExtensionProvider and ExtensionName it will be viewed from the composer.json file of that extension.

– For the name of VendorName and VendorExtension, you will get in your composer.json file which is included with that extension.

Illustration: By the following illustration code of uninstalling my module you will get a clear idea about the steps to uninstall the extension.

Note: For the composer method you might need to enter a username and password while uninstalling the module.

Final Words:

Hence, this way you can remove or uninstall a Magento 2 extension. In case you face any difficulties, let me know through the comment section below. Help your Magento friends to successfully remove or uninstall a Magento 2 extension by sharing the article with them. Stay connected for more such Magento solutions.

Happy Reading.

Click to rate this post!
[Total: 8 Average: 5]