# How to remove Mautic 2 plugins before updating to Mautic 3?

**URL:** <https://forum.mautic.org/t/how-to-remove-mautic-2-plugins-before-updating-to-mautic-3/15100>\
**Category:** Mautic 3 - Install/Upgrade Support\
**Created:** [July 7, 2020, 1:24am UTC](https://forum.mautic.org/t/how-to-remove-mautic-2-plugins-before-updating-to-mautic-3/15100 "2020-07-07T01:24:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ventilator](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ventilator/32/548_2.png) [@ventilator](https://forum.mautic.org/u/ventilator)\
**Post date:** [July 7, 2020, 1:24am UTC](https://forum.mautic.org/t/how-to-remove-mautic-2-plugins-before-updating-to-mautic-3/15100/1 "2020-07-07T01:24:24Z")

</div>

The first test install of Mautic 3.0 was a fresh one on an AWS Lightsail instance. It failed because of the error saying something like

> Too many rows in a table …

Unfortunately I did not look what database and which version was installed at that time.

The second time I cloned my Mautic 2.16.3 Lightsail install on Amazon AWS and tried an update. The update recommendation said I should uninstall or deactivate my installed plugins because they are probably not compatible with the new version 3.

I tried to find information on how to do that but could not really find a clear instruction. After deleting the plugins and cache the Mautic install broke.

I cloned again and then tried to install over the warnings. Besides quite a bit of time outs the install kept on going and finished with the message below.

 ![2020-07-07_00-28-16](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/b/bf8a5160dcf9014e73f684703c9b8f0ba46e46de.png)

What is the right way to delete plugins?

---

<div class="post-metadata">

**Author:** ![dennisameling](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dennisameling/32/958_2.png) [@dennisameling](https://forum.mautic.org/u/dennisameling)\
**Post date:** [July 9, 2020, 2:48pm UTC](https://forum.mautic.org/t/how-to-remove-mautic-2-plugins-before-updating-to-mautic-3/15100/2 "2020-07-09T14:48:31Z")

</div>

@ventilator Thanks for reaching out here!

The correct way to delete plugins prior to the Mautic 3 upgrade would be:

- Delete the plugin from your filesystem (remove the whole folder from the `plugins` folder). This is the only way to 100% make sure that the plugin is removed.
- Clear cache, best is if you completely remove the `app/cache/prod` folder in your Mautic 2 installation so that there’s no traces left from the plugin.

I just tested this on a production instance while upgrading from 2.16.3 to 3.0.1 and it worked as expected 🙂 please let us know if it works for you as well!

---

<div class="post-metadata">

**Author:** ![ventilator](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ventilator/32/548_2.png) [@ventilator](https://forum.mautic.org/u/ventilator)\
**Post date:** [July 10, 2020, 3:58am UTC](https://forum.mautic.org/t/how-to-remove-mautic-2-plugins-before-updating-to-mautic-3/15100/3 "2020-07-10T03:58:36Z")

</div>

Hi Dennis,

Thanks for responding to the problem.  
I’m pretty sure I already followed the procedure you recommend.  
I thought maybe it’s best to show you exactly what I did:

Updating Mautic 2.16.3 to version 3.0.1 on Amazon Lightsail on 4 GB RAM, 2 vCPUs, 80 GB SSD Plesk Hosting Stack on Ubuntu 16.04.6 LTS, My SQL 5.7.30 and Php version 7.3.19

I took a snapshot from my instance and cloned it:

 ![image002.jpg](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/1/10aa0bd3ba85cb2e87a1c3dedf64a61179ca3cca.jpeg)

In the new instance I deactivated all Cron jobs so no emails could get sent out by campaigns.

I changed the URL from [mtc.mydomain.com](http://mtc.mydomain.com) to [mautic3.mydomain.com](http://mautic3.mydomain.com)

I pointed the DNS server on Cloudflare to my new subdomain [mautic3.mydomain.com](http://mautic3.mydomain.com)

I secured the new subdomain with let’s encrypt.

I of course encountered this error then when I tried to open the Mautic instance because the URLs in the local.php file still pointed to the original Mautic instance:

 ![image004.jpg](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/1/1839cf9b679f83cff13465c78cb590ef7ec47a5e.jpeg)

After changing all the URLs in local.php and emptying the cache folder in app \> cache, I could login to the cloned Mautic install.

After clicking the update notification in the upper left corner I got these warnings:

 ![image005.jpg](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/9/999dfa53a8e62bca91d64573d5b37c8ffff206c5.jpeg)

I removed everything from the plugin folder

 ![image006.jpg](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/5/51a8e14e0842bb32f0b4b78a9fbb18cef69b81d1.jpeg)

 ![image007.jpg](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/0/0d4c96a67f2361333c556d6de2530226adb19c4e.jpeg)

and the cache folder

 ![image008.jpg](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/c/cac959c8105d6c33f3c8ae136df62c6dadb9bad2.jpeg)

 ![image009.jpg](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/0/085096de1ddbad3b664a2aa9a1336b8838257cc3.jpeg)

When I tried to access Mautic then I got this screen:

 ![image010.jpg](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/f/fbe01f625e7f09a86ff5c724a6781fcbae672693.jpeg)

That’s where I am stuck.  
I tried a server restart but that did not change anything.

![image003.png](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/5/5b416c5f1642a5da53476cdc500a9c894efd22c4.png)

 ![image001.jpg](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/5/5325651780910b4563240e6421462ddf75967b9b.jpeg)
