# \[Solved\] How can we delete function type variables no longer in use?

**URL:** <https://community.thunkable.com/t/solved-how-can-we-delete-function-type-variables-no-longer-in-use/563743>\
**Category:** Questions about Thunkable X\
**Tags:** solved\
**Created:** [April 20, 2020, 3:49am UTC](https://community.thunkable.com/t/solved-how-can-we-delete-function-type-variables-no-longer-in-use/563743 "2020-04-20T03:49:32Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [April 20, 2020, 3:49am UTC](https://community.thunkable.com/t/solved-how-can-we-delete-function-type-variables-no-longer-in-use/563743/1 "2020-04-20T03:49:33Z")

</div>

Hello,

Can anyone advise on how to delete function type variables. These have begun to clog up my Sandbox app (samples/examples) and my main project which has had many iterations in which i have created a bunch of different functions, some of which are no longer in use but they leave behind their variables in the variable list.

Can i delete these?

---

<div class="post-metadata">

**Author:** ![samclever](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@samclever](https://community.thunkable.com/u/samclever)\
**Post date:** [April 20, 2020, 7:11am UTC](https://community.thunkable.com/t/solved-how-can-we-delete-function-type-variables-no-longer-in-use/563743/2 "2020-04-20T07:11:03Z")

</div>

Which function variables do you mean? I thought they fixed the bug that variables no longer showed in the list once deleted.

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [April 20, 2020, 7:15am UTC](https://community.thunkable.com/t/solved-how-can-we-delete-function-type-variables-no-longer-in-use/563743/3 "2020-04-20T07:15:57Z")

</div>

mine are showing… idk. i’ll check again

---

<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:26am UTC](https://community.thunkable.com/t/solved-how-can-we-delete-function-type-variables-no-longer-in-use/563743/4 "2020-05-01T00:26:08Z")

</div>

Hi @jared, same thing here. I already checked it and the answer is no… unused variables are not cleared. Let’s see if anyone can tell us how.

We keep in touch. Thanks!

---

<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 2, 2020, 11:32pm UTC](https://community.thunkable.com/t/solved-how-can-we-delete-function-type-variables-no-longer-in-use/563743/5 "2020-05-02T23:32:56Z")

</div>

Hey @jared I know how to do that…

[![](https://img.youtube.com/vi/1ToMPn9jEDE/hqdefault.jpg "Delete variables Thunkable X") ](https://www.youtube.com/watch?v=1ToMPn9jEDE)

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [May 2, 2020, 11:41pm UTC](https://community.thunkable.com/t/solved-how-can-we-delete-function-type-variables-no-longer-in-use/563743/6 "2020-05-02T23:41:11Z")

</div>

I suppose that works. Ideally, these get deleted when the function gets deleted. But this is a known bug. Ideally function variable would stay locally scoped and be deleted when you delete the function.

Thank you though!! I will do this… tedious task 😉

---

<div class="post-metadata">

**Author:** ![thestrengthinstitute](https://avatars.discourse-cdn.com/v4/letter/t/48db29/32.png) [@thestrengthinstitute](https://community.thunkable.com/u/thestrengthinstitute)\
**Post date:** [June 27, 2020, 2:26pm UTC](https://community.thunkable.com/t/solved-how-can-we-delete-function-type-variables-no-longer-in-use/563743/7 "2020-06-27T14:26:01Z")

</div>

Is this available for PRO only? I cant see the delete option on my screen somehow

---

<div class="post-metadata">

**Author:** ![caminostudio](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/caminostudio/32/74734_2.png) [@caminostudio](https://community.thunkable.com/u/caminostudio)\
**Post date:** [July 17, 2020, 1:13pm UTC](https://community.thunkable.com/t/solved-how-can-we-delete-function-type-variables-no-longer-in-use/563743/8 "2020-07-17T13:13:18Z")

</div>

No. I´m PRO and I don´t have this option to delete old variables. I´m having the same problem.

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [July 25, 2020, 8:26pm UTC](https://community.thunkable.com/t/solved-how-can-we-delete-function-type-variables-no-longer-in-use/563743/9 "2020-07-25T20:26:59Z")

</div>

@caminostudio I checked this recently and was able to see the Delete option.

Can you share a screenshot please?

---

<div class="post-metadata">

**Author:** ![penny](https://avatars.discourse-cdn.com/v4/letter/p/8baadc/32.png) [@penny](https://community.thunkable.com/u/penny)\
**Post date:** [July 26, 2020, 7:37am UTC](https://community.thunkable.com/t/solved-how-can-we-delete-function-type-variables-no-longer-in-use/563743/10 "2020-07-26T07:37:57Z")

</div>

No delete option here either.

---

<div class="post-metadata">

**Author:** ![caminostudio](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/caminostudio/32/74734_2.png) [@caminostudio](https://community.thunkable.com/u/caminostudio)\
**Post date:** [July 26, 2020, 10:33pm UTC](https://community.thunkable.com/t/solved-how-can-we-delete-function-type-variables-no-longer-in-use/563743/11 "2020-07-26T22:33:27Z")

</div>

In my app/project. there are 11 “ghost variables”. These variables are not variables associated with a function, and they don´t have a “initialize variable block” associated. I can’t find a option to delete these these 11 “ghost” variables.

I copied my app/project and deleted all components and blocks. But the “ghost” variables are still there. Take a look….

[https://x.thunkable.com/projectPage/5f1cd8c3fbb5b1ad88c9472e](https://x.thunkable.com/projectPage/5f1cd8c3fbb5b1ad88c9472e)

I tried, but I couldn’t replicate the bug. But I believe it is associated with “copy and paste” a “initialize variable block” from one screen to other (I made this mistake in the beginning, and the variables became “crazy”). This bug also could be be associated with “Copy from My Screens” because some of these “ghost” variables are written in “portuguese language” and I’m not using Portuguese in my principal app, but I tested copy screens from another app/project that had variables in Portuguese and English.

How can I delete these “ghost variables” from my project/app?

---

<div class="post-metadata">

**Author:** ![Patrick\_Elisha](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/patrick_elisha/32/68464_2.png) [@Patrick\_Elisha](https://community.thunkable.com/u/Patrick_Elisha)\
**Post date:** [July 27, 2020, 5:00am UTC](https://community.thunkable.com/t/solved-how-can-we-delete-function-type-variables-no-longer-in-use/563743/12 "2020-07-27T05:00:10Z")

</div>

Thanks for sharing this useful information. Now I can clean my projects too.

---

<div class="post-metadata">

**Author:** ![Patrick\_Elisha](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/patrick_elisha/32/68464_2.png) [@Patrick\_Elisha](https://community.thunkable.com/u/Patrick_Elisha)\
**Post date:** [July 27, 2020, 5:12am UTC](https://community.thunkable.com/t/solved-how-can-we-delete-function-type-variables-no-longer-in-use/563743/13 "2020-07-27T05:12:14Z")

</div>

But I just checked now and cannot see the delete option.

---

<div class="post-metadata">

**Author:** ![penny](https://avatars.discourse-cdn.com/v4/letter/p/8baadc/32.png) [@penny](https://community.thunkable.com/u/penny)\
**Post date:** [August 26, 2020, 2:24am UTC](https://community.thunkable.com/t/solved-how-can-we-delete-function-type-variables-no-longer-in-use/563743/14 "2020-08-26T02:24:52Z")

</div>

Post deleted.

---

<div class="post-metadata">

**Author:** ![eddie.rebehy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eddie.rebehy/32/67993_2.png) [@eddie.rebehy](https://community.thunkable.com/u/eddie.rebehy)\
**Post date:** [August 27, 2020, 8:33am UTC](https://community.thunkable.com/t/solved-how-can-we-delete-function-type-variables-no-longer-in-use/563743/15 "2020-08-27T08:33:12Z")

</div>

I was actually looking for this delete option before I read this thread but it dissapeared on me. I though I must have been mistaken and that it never actually existed. 🙂

---

<div class="post-metadata">

**Author:** ![Pedro\_Alcaide](https://avatars.discourse-cdn.com/v4/letter/p/e495f1/32.png) [@Pedro\_Alcaide](https://community.thunkable.com/u/Pedro_Alcaide)\
**Post date:** [September 4, 2020, 10:09am UTC](https://community.thunkable.com/t/solved-how-can-we-delete-function-type-variables-no-longer-in-use/563743/16 "2020-09-04T10:09:56Z")

</div>

A few days ago the option to delete variable appeared but now that I need it, it is not there.

---

<div class="post-metadata">

**Author:** ![kaustubhmaladkar](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kaustubhmaladkar](https://community.thunkable.com/u/kaustubhmaladkar)\
**Post date:** [November 28, 2020, 11:10am UTC](https://community.thunkable.com/t/solved-how-can-we-delete-function-type-variables-no-longer-in-use/563743/17 "2020-11-28T11:10:32Z")

</div>

Sorry I am replying to a solved conversation, but it ain’t solved for me  
Here is the screenshot  
 ![](https://res.cloudinary.com/thunkablecloudinary123/image/upload/v1606561575/h1e3iuajh07xfwlkqrpi.jpg)

---

<div class="post-metadata">

**Author:** ![emregoker](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/emregoker/32/90431_2.png) [@emregoker](https://community.thunkable.com/u/emregoker)\
**Post date:** [November 17, 2021, 12:56pm UTC](https://community.thunkable.com/t/solved-how-can-we-delete-function-type-variables-no-longer-in-use/563743/18 "2021-11-17T12:56:04Z")

</div>

I still don’t see the delete option. It’s an old thread but can you help?

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [November 17, 2021, 2:04pm UTC](https://community.thunkable.com/t/solved-how-can-we-delete-function-type-variables-no-longer-in-use/563743/19 "2021-11-17T14:04:26Z")

</div>

@emregoker  
Please note that there are two types of variables in the variable list.

- Variables created using the `initialize` block. These are deleted by deleting the `Initialize` block from the `blocks screen`.
- Variables created using loops or functions. These will show in the `Variable` drawer with a name only not proceeded by **variable type**

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/4/14a306d7505bc1755b9f5cd161985f4a5be36963.png)  
In this image the variable `myInput` is a variable created by a loop block or a function block and can be deleted by the following:

- Select the variable from the `Variables` drawer and place it in the `blocks screen`.
- click on it using the **left mouse button**. You will get a popup menu with the last option to delete the variable.
- ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/d/dd0b047e48680b6264a53dd6dbb0919d31112ca7.png)
- Select the delete option to remove the variable from your app project.

Hope this will make it clearer.

---

<div class="post-metadata">

**Author:** ![emregoker](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/emregoker/32/90431_2.png) [@emregoker](https://community.thunkable.com/u/emregoker)\
**Post date:** [November 17, 2021, 2:16pm UTC](https://community.thunkable.com/t/solved-how-can-we-delete-function-type-variables-no-longer-in-use/563743/20 "2021-11-17T14:16:06Z")

</div>

> [@muneer](#):
>
> Initialize

I created the variables with Initialize blocks.  
But I deleted the screens where I created the variables.  
I guess there is no way to delete variables in this case 😕

[Next page](https://community.thunkable.com/t/solved-how-can-we-delete-function-type-variables-no-longer-in-use/563743.md?page=2)
