> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.weltpixel.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to uninstall and remove a Magento 2 extension ( manual vs composer )

Depending on the installation method, you need to uninstall the extension manually or via composer. Both methods are explained below.

**A. Manual Uninstall**

**Step 1:** Connect via SSH 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 the commands below:

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

**Step 3:** Remove extension files:

```
cd app/code/<ExtensionProvider>/
rm -rf <ExtensionName>
```

⚠️ **Note:** If you are using more extensions from the same provider, make sure not to remove shared extensions, as most providers use a shared extension or dependency pack as a base for all their extensions.

**Example:** If you are using the WeltPixel OWL Carousel Extension and want to uninstall it:

```
php bin/magento module:disable WeltPixel_OwlCarouselSlider --clear-static-content
php bin/magento setup:upgrade
cd app/code/WeltPixel/
rm -rf OwlCarouselSlider
```

⚠️ **Important:** If you are using other WeltPixel extensions, do **not** remove the `Backend` shared extension as it is used by the rest of the WeltPixel extensions. If you do not have any other WeltPixel extensions installed, it is safe to uninstall and remove `Backend` as well.

---

**B. Composer Uninstall**

**Step 1:** Connect via SSH to the root of your Magento installation and check the list of all modules:

```
php bin/magento module:status
```

**Step 2:** Disable the module and remove it with composer:

```
php bin/magento module:disable <ExtensionProvider_ExtensionName> --clear-static-content
php bin/magento setup:upgrade
composer remove VendorName/VendorExtensionRepository
```

* **Note 1:** You can find the exact ExtensionProvider and ExtensionName in the `composer.json` file associated with the extension.
* **Note 2:** The VendorName and VendorExtension can also be found under `/vendor/<VendorName>/<VendorExtension>`.
* **Note 3:** You may be asked for a composer username and password when uninstalling. These can be found under `var/composer_home/auth.json`.

**Example:** If you are using the WeltPixel OWL Carousel Extension and want to uninstall it:

```
php bin/magento module:disable WeltPixel_OwlCarouselSlider --clear-static-content
composer remove weltpixel/m2-weltpixel-owl-carousel-slider
php bin/magento setup:upgrade
```

⚠️ **Important:** As with the manual method, do not remove the WeltPixel `Backend` shared extension if you are using other WeltPixel modules.