# Arghh, Help. Lost My Plugin Code

**URL:** <https://forum.bubble.io/t/arghh-help-lost-my-plugin-code/45973>\
**Category:** Need help\
**Created:** [January 4, 2019, 7:57pm UTC](https://forum.bubble.io/t/arghh-help-lost-my-plugin-code/45973 "2019-01-04T19:57:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jon.richings](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@jon.richings](https://forum.bubble.io/u/jon.richings)\
**Post date:** [January 4, 2019, 7:57pm UTC](https://forum.bubble.io/t/arghh-help-lost-my-plugin-code/45973/1 "2019-01-04T19:57:12Z")

</div>

I was just tidying up some code in my first plugin (and pleased with myself that it was working) when I control-z’d both the initialization and update functions into oblivion. Instead of undoing the last action it deleted all the text in the window. Cntrl-Y and Cntrl-Shft-Z don’t bring it back. The plugin editor doesn’t seem have the edit tab so no undo/redo buttons. I think I’ve lost a whole lot of work.

---

<div class="post-metadata">

**Author:** ![gaurav](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/gaurav/32/6666_2.png) [@gaurav](https://forum.bubble.io/u/gaurav)\
**Post date:** [January 5, 2019, 5:27am UTC](https://forum.bubble.io/t/arghh-help-lost-my-plugin-code/45973/2 "2019-01-05T05:27:38Z")

</div>

Been through this experience several times. Couldn’t get back the code. Unfortunately plugin editor doesn’t support undo

---

<div class="post-metadata">

**Author:** ![mishav](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mishav/32/6420_2.png) [@mishav](https://forum.bubble.io/u/mishav)\
**Post date:** [January 5, 2019, 11:46am UTC](https://forum.bubble.io/t/arghh-help-lost-my-plugin-code/45973/3 "2019-01-05T11:46:22Z")

</div>

If you’ve published a version, you can almost certainly get back the published version code.

Otherwise, if the code was there for a while, an email to Bubble support might be a way to find out if there are any automatic backups to restore from.

---

<div class="post-metadata">

**Author:** ![jon.richings](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@jon.richings](https://forum.bubble.io/u/jon.richings)\
**Post date:** [January 5, 2019, 6:38pm UTC](https://forum.bubble.io/t/arghh-help-lost-my-plugin-code/45973/4 "2019-01-05T18:38:58Z")

</div>

Thanks gaurav and mishav. I still have a working copy of the plugin in it’s test app so it ‘exists’ somewhere, but I can’t figure out anyway of extracting it from there. I’ll try Bubble support as you suggest mishav.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [March 15, 2019, 7:58pm UTC](https://forum.bubble.io/t/arghh-help-lost-my-plugin-code/45973/5 "2019-03-15T19:58:38Z")

</div>

Closed on March 15, 2019, 7:58pm UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
