# How can I delete only certain items from the list?

**URL:** https://community.thunkable.com/t/how-can-i-delete-only-certain-items-from-the-list/400374
**Category:** Questions about Thunkable X
**Created:** [January 10, 2020, 8:19am UTC](https://community.thunkable.com/t/how-can-i-delete-only-certain-items-from-the-list/400374 "2020-01-10T08:19:31Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mom7667yafy](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@mom7667yafy](https://community.thunkable.com/u/mom7667yafy)
#### Post date: [January 10, 2020, 8:19am UTC](https://community.thunkable.com/t/how-can-i-delete-only-certain-items-from-the-list/400374/1 "2020-01-10T08:19:31Z")

</div>

![스크린샷 2020-01-10 오후 5.00.40](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/5/75c2e9e48c2cad657eac58a77d8fd6dd5699f9ed.png)  
Like the picture  
If there is [e] in the list, I want to delete [e].

When I press the delete button first, [e] disappears.  
If I press the delete button after that, it disappears from the end of the list.  
If I keep pressing the delete button, all the items in the list will be deleted.

What I want is  
First I delete the [e] by pressing the delete button. And I press delete button afterwards. At this time, there is no [e] so it should not be deleted.  
How can I implement this?

---

<div class="post-metadata">

### Author: ![mom7667yafy](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@mom7667yafy](https://community.thunkable.com/u/mom7667yafy)
#### Post date: [January 10, 2020, 11:47am UTC](https://community.thunkable.com/t/how-can-i-delete-only-certain-items-from-the-list/400374/2 "2020-01-10T11:47:04Z")

</div>

![스크린샷 2020-01-10 오후 8.35.13](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/8/88c3142a8000c1c41c9f9d3879bbe12a24244000.png)

I solved it, but this is the right way?

---

<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: [January 10, 2020, 11:55am UTC](https://community.thunkable.com/t/how-can-i-delete-only-certain-items-from-the-list/400374/3 "2020-01-10T11:55:29Z")

</div>

If an item in the list is not found, the search block returns 0, and the delete block from the list deletes the first item from the end. If you pass -1 to the delete block, the second element from the end will be deleted. I think you understand the algorithm of this block.

This is a bug of the system. The fact is that working with lists in Thunkable X is implemented artificially, not the way it works in programming languages.

guess what will be shown in the list if you specify Intex 0, 1 or -1

![изображение](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/a/1a25501c3ef65189c511c2a2c86840a33d2aba4b.png)

---

<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:46am UTC](https://community.thunkable.com/t/how-can-i-delete-only-certain-items-from-the-list/400374/4 "2024-11-08T11:46:06Z")

</div>


