# 由于键 (plugin\_name, key)=(discourse-data-explorer, q:-1) 重复，还原失败

**URL:** <https://meta.discourse.org/t/restore-failed-due-to-key-plugin-name-key-discourse-data-explorer-q-1-is-duplicated/157535>\
**Category:** Self-hosting\
**Created:** [2020 年7 月 13 日 02:00 UTC](https://meta.discourse.org/t/restore-failed-due-to-key-plugin-name-key-discourse-data-explorer-q-1-is-duplicated/157535 "2020-07-13T02:00:22Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

作者： ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
发布日期： [2020 年7 月 14 日 11:10 UTC](https://meta.discourse.org/t/restore-failed-due-to-key-plugin-name-key-discourse-data-explorer-q-1-is-duplicated/157535/4 "2020-07-14T11:10:27Z")

</div>

应该是 PluginStoreRow，而不是 PluginStore。试试这个：

```plaintext
./launcher enter app
rails c
PluginStoreRow.where(plugin_name: 'discourse-data-explorer').delete_all

```

⚠ 这将不可逆地删除您站点中的所有 data-explorer 数据

---

_[View the full topic](https://meta.discourse.org/t/restore-failed-due-to-key-plugin-name-key-discourse-data-explorer-q-1-is-duplicated/157535)._
