# Reloading a plugin doesn't seem to reset its globals

**URL:** https://forums.creativeclouddeveloper.com/t/reloading-a-plugin-doesnt-seem-to-reset-its-globals/1366
**Category:** UXP Plugin API
**Created:** [October 25, 2019, 10:29pm UTC](https://forums.creativeclouddeveloper.com/t/reloading-a-plugin-doesnt-seem-to-reset-its-globals/1366 "2019-10-25T22:29:04Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![cpryland](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/cpryland/32/1172_2.png) [@cpryland](https://forums.creativeclouddeveloper.com/u/cpryland)
#### Post date: [October 25, 2019, 10:29pm UTC](https://forums.creativeclouddeveloper.com/t/reloading-a-plugin-doesnt-seem-to-reset-its-globals/1366/1 "2019-10-25T22:29:04Z")

</div>

In my testing just now, it looked like reloading a plugin didn’t reset its global variables, which seems a bit scary.

Is that possible?

---

<div class="post-metadata">

### Author: ![peterflynn](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/peterflynn/32/56_2.png) [@peterflynn](https://forums.creativeclouddeveloper.com/u/peterflynn)
#### Post date: [October 26, 2019, 9:22am UTC](https://forums.creativeclouddeveloper.com/t/reloading-a-plugin-doesnt-seem-to-reset-its-globals/1366/2 "2019-10-26T09:22:47Z")

</div>

Everything should be fresh on a reload. Can you post a simple example of code where it’s not working that way for you?
