# Remove plug-in data please!

**URL:** https://meta.discourse.org/t/remove-plug-in-data-please/187055
**Category:** Support
**Created:** [April 16, 2021, 5:02am UTC](https://meta.discourse.org/t/remove-plug-in-data-please/187055 "2021-04-16T05:02:31Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![nathank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nathank/32/290039_2.png) [@nathank](https://meta.discourse.org/u/nathank)
#### Post date: [April 16, 2021, 5:02am UTC](https://meta.discourse.org/t/remove-plug-in-data-please/187055/1 "2021-04-16T05:02:31Z")

</div>

I’ve got a plugin (unofficial of course) which has collected a bunch of corrupt data which is causing problems. Can you help me to sort it out?

What I’d like to do is wipe out the data associated with the plugin (in this case [Custom Wizard Plugin 🧙](https://meta.discourse.org/t/custom-wizard-plugin/73345)) and start afresh.

I know that if I just uninstall the plugin and re-install it, the data will be preserved:

> [@Removing a plugin - is plugin data lost?](https://meta.discourse.org/t/removing-a-plugin-is-plugin-data-lost/82444/2):
>
> The data should remain even if you remove the plugin from app.yml

This is not what I want. I want that data wiped!

I love the plugin, but have clearly pushed it a little too far. @angus - you might have a clever trick for me too of course.

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [April 16, 2021, 5:14am UTC](https://meta.discourse.org/t/remove-plug-in-data-please/187055/2 "2021-04-16T05:14:20Z")

</div>

Hey @nathank.

If you’re absolutely sure you want to do that, you can do this in your server command line

```plaintext
./launcher enter app
rails c
PluginStoreRow.where(plugin_name: 'custom_wizard').destroy_all

```

Note that this will not destroy all logs associated with the custom wizard. To do that you can do the following. There shouldn’t be any reason to destroy logs however, unless you have some kind of privacy concern.

```plaintext
./launcher enter app
rails c
PluginStoreRow.where(plugin_name: 'custom_wizard_log').destroy_all

```

> [@nathank\_01ershaw](#):
>
> I love the plugin, but have clearly pushed it a little too far

If you have time please make a post here describing the issue as you see it: [Pavilion](https://thepavilion.io/c/open-source/discussion/78).

---

<div class="post-metadata">

### Author: ![nathank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nathank/32/290039_2.png) [@nathank](https://meta.discourse.org/u/nathank)
#### Post date: [April 16, 2021, 5:19am UTC](https://meta.discourse.org/t/remove-plug-in-data-please/187055/3 "2021-04-16T05:19:18Z")

</div>

Thanks Angus - that is amazing service! I’ll post about the issue I encountered there.

Now, the method above should work for any plugin, huh? Sweet.

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [April 16, 2021, 5:20am UTC](https://meta.discourse.org/t/remove-plug-in-data-please/187055/4 "2021-04-16T05:20:28Z")

</div>

> [@nathank](#):
>
> Now, the method above should work for any plugin, huh? Sweet.

Not necessarily unfortunately. Different plugins use different storage methods.

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [April 16, 2021, 5:23am UTC](https://meta.discourse.org/t/remove-plug-in-data-please/187055/5 "2021-04-16T05:23:03Z")

</div>

I would also just note that the Custom Wizard Plugin has a “Manager” which you can use to essentially do the same thing. I’m interested to learn what issues you had, but let’s continue the conversation over at [thepavilion.io](http://thepavilion.io).

 ![Screenshot at Apr 16 15-22-10](https://global.discourse-cdn.com/meta/original/3X/9/a/9a568c99594f16902e72ef381ccf08100ba15b35.png)

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [May 16, 2021, 5:23am UTC](https://meta.discourse.org/t/remove-plug-in-data-please/187055/6 "2021-05-16T05:23:12Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
