# Problem while removing an item from my list

**URL:** https://community.thunkable.com/t/problem-while-removing-an-item-from-my-list/41560
**Category:** Questions about Thunkable X
**Created:** [August 16, 2018, 8:34pm UTC](https://community.thunkable.com/t/problem-while-removing-an-item-from-my-list/41560 "2018-08-16T20:34:53Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![AcrobatEpee](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/acrobatepee/32/26336_2.png) [@AcrobatEpee](https://community.thunkable.com/u/AcrobatEpee)
#### Post date: [August 16, 2018, 8:34pm UTC](https://community.thunkable.com/t/problem-while-removing-an-item-from-my-list/41560/1 "2018-08-16T20:34:53Z")

</div>

Hello, I’m new to thunkable X and I tried to make it as in the old version but it doesn’t want to work, any advices ?  
Thanks in advance.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/5/359f5ea45e63721691524049253399fe41eadabd.png)

---

<div class="post-metadata">

### Author: ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)
#### Post date: [August 17, 2018, 5:53am UTC](https://community.thunkable.com/t/problem-while-removing-an-item-from-my-list/41560/2 "2018-08-17T05:53:13Z")

</div>

To remove an item from the list, you must specify its index. In your case, you first need to find the element index for the specified color, and then delete the element at that index.

Your task can also be solved with text blocks (but this is more difficult): convert the list into text, remove the desired fragment from the text and then convert the text back to the list.

---

<div class="post-metadata">

### Author: ![AcrobatEpee](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/acrobatepee/32/26336_2.png) [@AcrobatEpee](https://community.thunkable.com/u/AcrobatEpee)
#### Post date: [August 17, 2018, 11:43am UTC](https://community.thunkable.com/t/problem-while-removing-an-item-from-my-list/41560/3 "2018-08-17T11:43:56Z")

</div>

If I may ask, how do I find the index, that was the question I was asking but I didn’t know how to ask, could you guide me please ?

---

<div class="post-metadata">

### Author: ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)
#### Post date: [August 17, 2018, 1:16pm UTC](https://community.thunkable.com/t/problem-while-removing-an-item-from-my-list/41560/4 "2018-08-17T13:16:37Z")

</div>

To search for an index, loop through the list and compare the current value of the list with the specified one. If the values ​​match, then save the found index and exit the loop.

---

<div class="post-metadata">

### Author: ![AcrobatEpee](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/acrobatepee/32/26336_2.png) [@AcrobatEpee](https://community.thunkable.com/u/AcrobatEpee)
#### Post date: [August 17, 2018, 1:45pm UTC](https://community.thunkable.com/t/problem-while-removing-an-item-from-my-list/41560/5 "2018-08-17T13:45:02Z")

</div>

I’m gonna try this coming back to you if I fail

---

<div class="post-metadata">

### Author: ![AcrobatEpee](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/acrobatepee/32/26336_2.png) [@AcrobatEpee](https://community.thunkable.com/u/AcrobatEpee)
#### Post date: [August 17, 2018, 3:25pm UTC](https://community.thunkable.com/t/problem-while-removing-an-item-from-my-list/41560/6 "2018-08-17T15:25:20Z")

</div>

Something like that ?

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

---

<div class="post-metadata">

### Author: ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)
#### Post date: [August 17, 2018, 4:24pm UTC](https://community.thunkable.com/t/problem-while-removing-an-item-from-my-list/41560/7 "2018-08-17T16:24:04Z")

</div>

Yes

---

<div class="post-metadata">

### Author: ![AcrobatEpee](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/acrobatepee/32/26336_2.png) [@AcrobatEpee](https://community.thunkable.com/u/AcrobatEpee)
#### Post date: [August 17, 2018, 4:25pm UTC](https://community.thunkable.com/t/problem-while-removing-an-item-from-my-list/41560/8 "2018-08-17T16:25:24Z")

</div>

It works fine thanks

---

<div class="post-metadata">

### Author: ![rojored12](https://avatars.discourse-cdn.com/v4/letter/r/47e85d/32.png) [@rojored12](https://community.thunkable.com/u/rojored12)
#### Post date: [November 7, 2018, 10:03pm UTC](https://community.thunkable.com/t/problem-while-removing-an-item-from-my-list/41560/9 "2018-11-07T22:03:55Z")

</div>

Hello @AcrobatEpee and @actech

I´ve been having trouble removing items from my list also. I read this discussion and tried several ways to solve my issue in a similar or even the same way you did it. However, I still cannot remove items from list when button correct is clicked. Below you can see screenshots with all my blocks and a second screenshot with different options, but still none of them worked.

Any help and suggestions are all welcome.

Sorry if I had unnecesary or too complex blocking, I am new in this stuff and still learning.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/c/ec8a6109162e55b18fb05f131b7501235130d4a9.png)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/6/56c3e89737582ced9beb25a537c519beafb7edbe.png)

In case it helps, here´s my JSON/List

{  
“gine”: [  
{  
“Question”: “Question A”,  
“Answer”: “Answer A”  
},  
{  
“Question”: “Question B”,  
“Answer”: “Answer B”  
},  
{  
“Question”: “Question C”,  
“Answer”: “Answer C”  
}  
]  
}

---

<div class="post-metadata">

### Author: ![Mark](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mark/32/18133_2.png) [@Mark](https://community.thunkable.com/u/Mark)
#### Post date: [November 12, 2018, 6:45pm UTC](https://community.thunkable.com/t/problem-while-removing-an-item-from-my-list/41560/10 "2018-11-12T18:45:18Z")

</div>

David,

Any chance you could share your project (see [here](https://docs.thunkable.com/thunkable-cross-platform/share) for how)? That would make it easier to read your code in context. Also, could you tell us exactly what steps to take with your app to replicate the problem you’re having.

-Mark

---

<div class="post-metadata">

### Author: ![User81](https://avatars.discourse-cdn.com/v4/letter/u/ba9def/32.png) [@User81](https://community.thunkable.com/u/User81)
#### Post date: [November 12, 2018, 7:11pm UTC](https://community.thunkable.com/t/problem-while-removing-an-item-from-my-list/41560/11 "2018-11-12T19:11:34Z")

</div>

“gine” is a list of objects -\> the variable “list” is the same list of objects -\> the variable “randomlist” is a random item of this list, for example ={“Question”: “Question A”, “Answer”: “Answer A”}

Then you try to remove the number “{“Question”: “Question A”, “Answer”: “Answer A”}” of the list ?!  
Usually you might want to delete the number 1 or 2 in a list.

Maybe you want to delete the list item “{“Question”: “Question A”, “Answer”: “Answer A”}” in the list. Then you should use the block: “index of … in list …” . That might be for example =2 . Then you have a number and can use the " in list … remove # …"-block

---

<div class="post-metadata">

### Author: ![rojored12](https://avatars.discourse-cdn.com/v4/letter/r/47e85d/32.png) [@rojored12](https://community.thunkable.com/u/rojored12)
#### Post date: [November 12, 2018, 8:21pm UTC](https://community.thunkable.com/t/problem-while-removing-an-item-from-my-list/41560/12 "2018-11-12T20:21:28Z")

</div>

Thanks for the suggestions. I think you have a good point regarding the use of “#”, however the block your suggesting I can´t find it, is it not only on the Thunkable Classic Platform?

---

<div class="post-metadata">

### Author: ![rojored12](https://avatars.discourse-cdn.com/v4/letter/r/47e85d/32.png) [@rojored12](https://community.thunkable.com/u/rojored12)
#### Post date: [November 12, 2018, 8:23pm UTC](https://community.thunkable.com/t/problem-while-removing-an-item-from-my-list/41560/13 "2018-11-12T20:23:08Z")

</div>

The process is

1. Clic the flashcard (big blue box), then you´ll see the answer (the box turns red).
2. Clic the green happy face 🙂 (this means you knew it so you don´t need that card anymore in the deck)
3. Clic Next to draw a new card

If you continue to do these steps for every new card, they shouldn´t repeat, so eventually the list will be empty.

---

<div class="post-metadata">

### Author: ![User81](https://avatars.discourse-cdn.com/v4/letter/u/ba9def/32.png) [@User81](https://community.thunkable.com/u/User81)
#### Post date: [November 12, 2018, 8:52pm UTC](https://community.thunkable.com/t/problem-while-removing-an-item-from-my-list/41560/14 "2018-11-12T20:52:34Z")

</div>

do you need help with sharing your project?

---

<div class="post-metadata">

### Author: ![User81](https://avatars.discourse-cdn.com/v4/letter/u/ba9def/32.png) [@User81](https://community.thunkable.com/u/User81)
#### Post date: [November 12, 2018, 9:27pm UTC](https://community.thunkable.com/t/problem-while-removing-an-item-from-my-list/41560/15 "2018-11-12T21:27:36Z")

</div>

sorry, I have tried it but I cannot help.

combining objects and lists and multiple various variables and storages is at the moment a case for specialists. good luck

---

<div class="post-metadata">

### Author: ![rojored12](https://avatars.discourse-cdn.com/v4/letter/r/47e85d/32.png) [@rojored12](https://community.thunkable.com/u/rojored12)
#### Post date: [November 12, 2018, 9:41pm UTC](https://community.thunkable.com/t/problem-while-removing-an-item-from-my-list/41560/16 "2018-11-12T21:41:20Z")

</div>

It’s ok.  
Thanks anyway!

---

<div class="post-metadata">

### Author: ![Mark](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mark/32/18133_2.png) [@Mark](https://community.thunkable.com/u/Mark)
#### Post date: [November 12, 2018, 11:12pm UTC](https://community.thunkable.com/t/problem-while-removing-an-item-from-my-list/41560/17 "2018-11-12T23:12:18Z")

</div>

David,

You discovered a bug! It looks like currently, the block

 ![58%20PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/1/512d5e19e8d0c47a22a4cd4edf59ca0800c73faa.png)  
isn’t working. We’re looking at the issue. In the meantime you might want to see if there is some other way to do what you are trying to do. I’ll think about it, as well.

Just FYI, you might think about using stored variables instead of Local Storage and cloud variables instead of Realtime DB. That would greatly simplify your app, though it wouldn’t solve the particular issue that you are having.

Sorry for the trouble your having.

-Mark

---

<div class="post-metadata">

### Author: ![rojored12](https://avatars.discourse-cdn.com/v4/letter/r/47e85d/32.png) [@rojored12](https://community.thunkable.com/u/rojored12)
#### Post date: [November 12, 2018, 11:29pm UTC](https://community.thunkable.com/t/problem-while-removing-an-item-from-my-list/41560/18 "2018-11-12T23:29:23Z")

</div>

Ooohh! That might explain a lot haha, thanks for helping me though.  
In the meantime, I´ll be exploring the variables you are suggesting.  
Is there any way of knowing when will the bug is fixed? Thanks again.

---

<div class="post-metadata">

### Author: ![Mark](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mark/32/18133_2.png) [@Mark](https://community.thunkable.com/u/Mark)
#### Post date: [November 13, 2018, 6:53pm UTC](https://community.thunkable.com/t/problem-while-removing-an-item-from-my-list/41560/19 "2018-11-13T18:53:03Z")

</div>

David,

I have no ETA on that bug right now, but it is a relatively high priority for us.

-Mark

---

<div class="post-metadata">

### Author: ![rojored12](https://avatars.discourse-cdn.com/v4/letter/r/47e85d/32.png) [@rojored12](https://community.thunkable.com/u/rojored12)
#### Post date: [November 20, 2018, 11:08pm UTC](https://community.thunkable.com/t/problem-while-removing-an-item-from-my-list/41560/20 "2018-11-20T23:08:30Z")

</div>

Apparently it is now working fine. Thanks!

[Next page](https://community.thunkable.com/t/problem-while-removing-an-item-from-my-list/41560.md?page=2)
