<p>you need to add back the plugin to the install directory, then remove it from the control panel normally, Note it is trying to remove the folder but did not find it.</p>

CC BY-SA 4.0
2024-02-06T08:21:31.880Z
That will probably work indeed. But where is it still remembering this plugin from? If I could delete that reference surely that would fix it as well?
Matthias
CC BY-SA 4.0
2024-02-06T08:31:44.630Z
You will have to do too much work to fix every place , there would be the composer , the autoload.php inside the vendor directory , if you want to go for this route make sure if you are searching inside your IDE that you include the vendor folder ( As it is ignored most of the time )
Salah Ahmed Ali
CC BY-SA 4.0
2024-02-06T14:00:00.037Z
I ended up creating a new plugin with the same name. Then removed the plugin from the interface and then deleted the new plugin from the codebase.
Weird, but it works!
Matthias
CC BY-SA 4.0
2024-11-29T12:41:47.233Z
For future references (googlers): Open the ./vendor/craftcms/plugins.php and search for the node that defines your plugin. Remove that node. Done deal.
InanisAtheos
CC BY-SA 4.0
2024-02-06T08:12:34.470Z
2024-02-06T08:33:51.880Z
2024-02-06T08:33:51.880Z
Salah Ahmed Ali
<p>I have removed all references to the plugin in the DB and the codebase.
The plugin is currently displayed as &quot;Not installed&quot; in the plugins admin panel.
When I try to remove it by clicking on &quot;remove&quot; in the cog menu I get the usual composer updating message. After this the plugin is still there in the overview.
I can't find any reference to the plugin in the codebase by searching the whole project.</p>
<p>I do get a warning message in the logs: <code>2024-02-05 16:57:22 [web.WARNING] [craft\services\Plugins::init] Invalid plugin base path: /app/vendor/company/aankoopbonnen/src {&quot;memory&quot;:1373240} </code></p>
<p>Where is it still finding this path?
And how can I remove it from the project?</p>

CC BY-SA 4.0
2024-02-05T16:13:23.063Z
Is the plugin still referenced in the `composer.json`? Possibly as a [path repository](https://craftcms.com/docs/4.x/extend/plugin-guide.html#path-repository)?
MoritzLost
CC BY-SA 4.0
2024-02-06T08:19:33.053Z
No, it has been removed from the composer.json file.
Matthias
<plugin-development>
Can't remove custom plugin
# Can't remove custom plugin

(Asked by: username_0 on 2024-02-05)

I have removed all references to the plugin in the DB and the codebase.
The plugin is currently displayed as "Not installed" in the plugins admin panel.
When I try to remove it by clicking on "remove" in the cog menu I get the usual composer updating message. After this the plugin is still there in the overview.
I can't find any reference to the plugin in the codebase by searching the whole project.

I do get a warning message in the logs: `2024-02-05 16:57:22 [web.WARNING] [craft\services\Plugins::init] Invalid plugin base path: /app/vendor/company/aankoopbonnen/src {"memory":1373240}`

Where is it still finding this path?
And how can I remove it from the project?

**Tags:** plugin-development

> **Comments:**
> **username_1**: Is the plugin still referenced in the `composer.json`? Possibly as a [path repository](https://craftcms.com/docs/4.x/extend/plugin-guide.html#path-repository)?  
> **username_0**: No, it has been removed from the composer.json file.  

---

## 1 answers

### Answer by username_2 on 2024-02-06. Score: 1 | Accepted answer

you need to add back the plugin to the install directory, then remove it from the control panel normally, Note it is trying to remove the folder but did not find it.

> **Comments:**
> **username_0**: That will probably work indeed. But where is it still remembering this plugin from? If I could delete that reference surely that would fix it as well?  
> **username_2**: You will have to do too much work to fix every place , there would be the composer , the autoload.php inside the vendor directory , if you want to go for this route make sure if you are searching inside your IDE that you include the vendor folder ( As it is ignored most of the time )  
> **username_0**: I ended up creating a new plugin with the same name. Then removed the plugin from the interface and then deleted the new plugin from the codebase. Weird, but it works!  
> **username_3**: For future references (googlers): Open the ./vendor/craftcms/plugins.php and search for the node that defines your plugin. Remove that node. Done deal.  

---

