# Mautic-5 Problem Uninstalling 3rd Party Plugin

**URL:** <https://forum.mautic.org/t/mautic-5-problem-uninstalling-3rd-party-plugin/33497>\
**Category:** Product Support\
**Created:** [September 17, 2024, 1:05am UTC](https://forum.mautic.org/t/mautic-5-problem-uninstalling-3rd-party-plugin/33497 "2024-09-17T01:05:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![guidedfree](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/guidedfree/32/12725_2.png) [@guidedfree](https://forum.mautic.org/u/guidedfree)\
**Post date:** [September 17, 2024, 1:05am UTC](https://forum.mautic.org/t/mautic-5-problem-uninstalling-3rd-party-plugin/33497/1 "2024-09-17T01:05:55Z")

</div>

My Mautic version is: 5.1.0  
My PHP version is: 8.1.29  
My Database type and version is: 10.6.18-MariaDB

I am having issues with removing/uninstalling a plugin (KonstantinCodes/mautic-recaptcha). I installed it to test if it worked on Mautic5, but did not see the plugin available. I deleted the plugin folder, and reran the clear cache. I tried installing a version that was modified for version 5, but I get the following error when clearing cache:

In MauticRecaptchaBundle.php line 16:  
Compile Error: Cannot declare class MauticPlugin\MauticRecaptchaBundle\MauticRecaptchaBundle, because the name is already in use

The only log messages relative to the issues were found in plugins/error\_log:  
[16-Sep-2024 18:44:38 UTC] PHP Fatal error: Cannot declare class MauticPlugin\MauticRecaptchaBundle\MauticRecaptchaBundle, because the name is already in use in /home/hysmor5/public\_html/mkt/plugins/MauticRecaptcha/MauticRecaptchaBundle.php on line 16  
[16-Sep-2024 19:03:19 UTC] PHP Fatal error: Cannot declare class MauticPlugin\MauticRecaptchaBundle\MauticRecaptchaBundle, because the name is already in use in /home/hysmor5/public\_html/mkt/plugins/Mautic5Recaptcha/MauticRecaptchaBundle.php on line 16  
[16-Sep-2024 19:29:11 UTC] PHP Fatal error: Cannot declare class MauticPlugin\MauticRecaptchaBundle\MauticRecaptchaBundle, because the name is already in use in /home/hysmor5/public\_html/mkt/plugins/mautic5recaptcha/MauticRecaptchaBundle.php on line 16

Steps I have tried to fix the problem:  
Remove the plugin directory, then clear cache (using php …/bin/console cache:clear --env=prod) and then install a new version of plugin, but with the same name.

---

<div class="post-metadata">

**Author:** ![ekke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ekke/32/296_2.png) [@ekke](https://forum.mautic.org/u/ekke)\
**Post date:** [September 17, 2024, 8:29am UTC](https://forum.mautic.org/t/mautic-5-problem-uninstalling-3rd-party-plugin/33497/2 "2024-09-17T08:29:30Z")

</div>

try clearing the cache the hard way (rf -rf var/cache/prod/\*)
