# How do I delete old variables?

**URL:** <https://community.thunkable.com/t/how-do-i-delete-old-variables/534628>\
**Category:** Questions about Thunkable X\
**Created:** [March 25, 2020, 12:49pm UTC](https://community.thunkable.com/t/how-do-i-delete-old-variables/534628 "2020-03-25T12:49:54Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![bramgrooten](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/bramgrooten/32/33189_2.png) [@bramgrooten](https://community.thunkable.com/u/bramgrooten)\
**Post date:** [March 25, 2020, 12:49pm UTC](https://community.thunkable.com/t/how-do-i-delete-old-variables/534628/1 "2020-03-25T12:49:54Z")

</div>

I had some extra variables on a Screen2 before, but not anymore. The screen is deleted and I want to get rid of the variables that have a “2” behind them (see attached screenshot).

The app still runs okay of course, but I don’t want my students to get confused with extra variable names that shouldn’t be there.

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/8/487ca778b0676838d3ab92a7e87de7b83b25ee39.png)

---

<div class="post-metadata">

**Author:** ![artificialdama4u](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@artificialdama4u](https://community.thunkable.com/u/artificialdama4u)\
**Post date:** [May 1, 2020, 12:18am UTC](https://community.thunkable.com/t/how-do-i-delete-old-variables/534628/2 "2020-05-01T00:18:44Z")

</div>

I got it @bramgrooten  
Take a look here and give me a like, if you like it 🙏

> [@\[Solved\] How can we delete function type variables no longer in use?](http://community.thunkable.com/t/how-can-we-delete-function-type-variables-no-longer-in-use/563743/5):
>
> Hey @jared I know how to do that… [[Delete variables Thunkable X] ](https://www.youtube.com/watch?v=1ToMPn9jEDE)

---

<div class="post-metadata">

**Author:** ![gobassky](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/gobassky/32/77019_2.png) [@gobassky](https://community.thunkable.com/u/gobassky)\
**Post date:** [July 21, 2020, 7:01am UTC](https://community.thunkable.com/t/how-do-i-delete-old-variables/534628/3 "2020-07-21T07:01:31Z")

</div>

I have the same issue. Copied a screen to cut-and-paste some blocks across apps, The variables associated with the source app get copied into my current app. When I removed the delete screen, all the variables are still there. And it cluttered up my existing app. It seemed that there is no way to delete those unused variables!!.

P/s: this is not about deleting function variables.

---

<div class="post-metadata">

**Author:** ![brucemortland7e6c](https://avatars.discourse-cdn.com/v4/letter/b/45deac/32.png) [@brucemortland7e6c](https://community.thunkable.com/u/brucemortland7e6c)\
**Post date:** [November 20, 2020, 1:19pm UTC](https://community.thunkable.com/t/how-do-i-delete-old-variables/534628/4 "2020-11-20T13:19:06Z")

</div>

Yeah… except the delete variable is no longer part of the pull-down menu.

Besides, that’s definitely a kludgy way to clean up old garbage.

---

<div class="post-metadata">

**Author:** ![brucemortland7e6c](https://avatars.discourse-cdn.com/v4/letter/b/45deac/32.png) [@brucemortland7e6c](https://community.thunkable.com/u/brucemortland7e6c)\
**Post date:** [November 20, 2020, 1:34pm UTC](https://community.thunkable.com/t/how-do-i-delete-old-variables/534628/5 "2020-11-20T13:34:01Z")

</div>

So this problem has been marked as solved and it looks like it has reappeared again.

My project as an example: [https://x.thunkable.com/copy/e26e2d5cd1c3205d4d48f48e34bbfb95](https://x.thunkable.com/copy/e26e2d5cd1c3205d4d48f48e34bbfb95)

Essentially, when I look at my variables, it appears that old variables do NOT get deleted. In fact in my pull down ‘select the variable name’ in the variable block, I have a new AND an old variable that share the same name. I believe my code is getting confused (I know I am) and sometimes looks at the old variable. There is no ‘delete’ on the pull-down that seems to have existed in the past, though that seems to be an ugly fix. Another weird feature: variables that don’t have the create block still exist and can be used.

Seems like there should be a ‘garbage collection’ function that runs every time it saves. Easy for me to say, I don’t have to write/debug/maintain the code.

This was marked as solved and explains the problem: [[Solved] How can we delete function type variables no longer in use?](http://community.thunkable.com/t/solved-how-can-we-delete-function-type-variables-no-longer-in-use/563743)

PS: To the developers: Thanks for all the hard work. We only complain because we see how good this product can be. Thanks again!

---

<div class="post-metadata">

**Author:** ![darren](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/darren/32/69854_2.png) [@darren](https://community.thunkable.com/u/darren)\
**Post date:** [November 20, 2020, 1:44pm UTC](https://community.thunkable.com/t/how-do-i-delete-old-variables/534628/6 "2020-11-20T13:44:37Z")

</div>

I have an app where I copied a screen from another app and all of the other apps variables now show in the new app. Unfortunately the other developer was a little liberal with the variables, so there are around 50 unused variables in this new app project. This makes it a headache when scrolling through and trying to search for a variable.

So upvote! 😉

---

<div class="post-metadata">

**Author:** ![brucemortland7e6c](https://avatars.discourse-cdn.com/v4/letter/b/45deac/32.png) [@brucemortland7e6c](https://community.thunkable.com/u/brucemortland7e6c)\
**Post date:** [November 20, 2020, 1:59pm UTC](https://community.thunkable.com/t/how-do-i-delete-old-variables/534628/7 "2020-11-20T13:59:38Z")

</div>

So, how do I upvote this? Is that just the heart?

---

<div class="post-metadata">

**Author:** ![darren](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/darren/32/69854_2.png) [@darren](https://community.thunkable.com/u/darren)\
**Post date:** [November 20, 2020, 5:50pm UTC](https://community.thunkable.com/t/how-do-i-delete-old-variables/534628/8 "2020-11-20T17:50:11Z")

</div>

Currently, Thunkable asks that we submit Github tickets: [https://docs.thunkable.com/bugs-and-feature-requests](https://docs.thunkable.com/bugs-and-feature-requests)

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 11:29am UTC](https://community.thunkable.com/t/how-do-i-delete-old-variables/534628/9 "2024-11-08T11:29:31Z")

</div>


