# Issue with \_plug Folder Being Removed After Running plug update in SilverBullet 2.1.6 (Docker)

**URL:** https://community.silverbullet.md/t/issue-with-plug-folder-being-removed-after-running-plug-update-in-silverbullet-2-1-6-docker/3308
**Category:** Troubleshooting
**Created:** [October 1, 2025, 8:46am UTC](https://community.silverbullet.md/t/issue-with-plug-folder-being-removed-after-running-plug-update-in-silverbullet-2-1-6-docker/3308 "2025-10-01T08:46:10Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![KazunariTsuboi](https://community.silverbullet.md/user_avatar/community.silverbullet.md/kazunaritsuboi/32/1276_2.png) [@KazunariTsuboi](https://community.silverbullet.md/u/KazunariTsuboi)
#### Post date: [October 1, 2025, 8:46am UTC](https://community.silverbullet.md/t/issue-with-plug-folder-being-removed-after-running-plug-update-in-silverbullet-2-1-6-docker/3308/1 "2025-10-01T08:46:10Z")

</div>

First of all, thank you very much for all the amazing work that goes into developing and supporting SilverBullet. I recently updated to version 2.1.6 and started running it via Docker, and I truly appreciate how much the project continues to improve.

While setting things up, I noticed an issue: when I run the plug update command, the \_plug folder that I had placed directly under the space directory gets deleted. I’m not sure whether this happens only in my environment or if others are experiencing the same behavior, but at the moment it prevents me from using plugs, which is quite a challenge.

I would be very grateful for any advice, insights, or suggestions you could share. Thank you again for all the hard work you put into making SilverBullet such a wonderful tool.

---

<div class="post-metadata">

### Author: ![zef](https://community.silverbullet.md/user_avatar/community.silverbullet.md/zef/32/7_2.png) [@zef](https://community.silverbullet.md/u/zef)
#### Post date: [October 1, 2025, 10:26am UTC](https://community.silverbullet.md/t/issue-with-plug-folder-being-removed-after-running-plug-update-in-silverbullet-2-1-6-docker/3308/2 "2025-10-01T10:26:21Z")

</div>

Hello!

When you run `Plugs: Update` this is what it does, conceptually:

- It wipes your `_plug/` folder
- It reads the list of new plugs to install from your “plugs” config (set via `config.set("plugs", {...})`
- It downloads each of those and puts them in your `_plug/` folder.
- It restarts “the system” so that you can immediately start using them without a page load

How are you managing plugs right now, did you put files there manually? If so, they will be wiped every time. If you configure them with `config.set`, then perhaps you’re doing it wrong. Can you show us your CONFIG?

---

<div class="post-metadata">

### Author: ![KazunariTsuboi](https://community.silverbullet.md/user_avatar/community.silverbullet.md/kazunaritsuboi/32/1276_2.png) [@KazunariTsuboi](https://community.silverbullet.md/u/KazunariTsuboi)
#### Post date: [October 1, 2025, 3:11pm UTC](https://community.silverbullet.md/t/issue-with-plug-folder-being-removed-after-running-plug-update-in-silverbullet-2-1-6-docker/3308/3 "2025-10-01T15:11:44Z")

</div>

Thank you so much for the clear explanation! That really helped me understand what was going on.

To follow up, here’s what I had originally in my CONFIG:

```auto
config.set {
  plugs = {
    "github:joekrill/silverbullet-treeview/treeview.plug.js"
  },
  treeview = {
    position = "lhs",
    size = 0.5,
    dragAndDrop = {
      enabled = true,
      confirmOnRename = true
    }
  }
}

```

As you pointed out, the problem was with how I was declaring the config. After changing it to:

```auto
config.set("plugs", {
    "github:joekrill/silverbullet-treeview/treeview.plug.js"
  })
config.set("treeview", {
    position = "lhs",
    size=1.0,
    dragAndDrop = {
      enabled = true,
      confirmOnRename = true
    }
  }
)

```

everything started working perfectly.

I really appreciate your guidance, and I’m glad to have learned the proper way to configure this. Thank you again for your support and for all the work you put into SilverBullet!
