# Plugin Cleaner

**URL:** https://meta.discourse.org/t/plugin-cleaner/399505
**Category:** Plugin
**Created:** [March 29, 2026, 2:10am UTC](https://meta.discourse.org/t/plugin-cleaner/399505 "2026-03-29T02:10:32Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![elmuerte](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elmuerte/32/456517_2.png) [@elmuerte](https://meta.discourse.org/u/elmuerte)
#### Post date: [March 29, 2026, 7:20pm UTC](https://meta.discourse.org/t/plugin-cleaner/399505/4 "2026-03-29T19:20:26Z")

</div>

Unless those tables have foreign keys to core discourse tables, which can prevent deletion of data in those tables.

But that problem is not something which can be reliably detected by an other tool. The plugin making those relations should either not create foreign keys, or Discourse needs to provide a way for plugins to register a way to “disarm” them when they disappear from the installation.

---

_[View the full topic](https://meta.discourse.org/t/plugin-cleaner/399505)._
