# Delete Row Containing Button/Textinput

**URL:** <https://community.thunkable.com/t/delete-row-containing-button-textinput/1030989>\
**Category:** Questions about Thunkable X\
**Created:** [December 9, 2020, 7:27pm UTC](https://community.thunkable.com/t/delete-row-containing-button-textinput/1030989 "2020-12-09T19:27:58Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christian\_Sigge](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/christian_sigge/32/27756_2.png) [@Christian\_Sigge](https://community.thunkable.com/u/Christian_Sigge)\
**Post date:** [December 9, 2020, 7:27pm UTC](https://community.thunkable.com/t/delete-row-containing-button-textinput/1030989/1 "2020-12-09T19:27:58Z")

</div>

Hello,  
with the any Component Blocks I can find the component of a Button and delete the Button,  
but how do I find the Component of the Row that is containing the Button?

My goal is to delete the whole row.

---

<div class="post-metadata">

**Author:** ![kushweez](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kushweez/32/90265_2.png) [@kushweez](https://community.thunkable.com/u/kushweez)\
**Post date:** [December 9, 2020, 7:38pm UTC](https://community.thunkable.com/t/delete-row-containing-button-textinput/1030989/2 "2020-12-09T19:38:42Z")

</div>

In what context are you looking to do this? Do you want to delete in a data viewer list? Do you want to delete a clone object, created ?

---

<div class="post-metadata">

**Author:** ![Christian\_Sigge](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/christian_sigge/32/27756_2.png) [@Christian\_Sigge](https://community.thunkable.com/u/Christian_Sigge)\
**Post date:** [December 9, 2020, 7:50pm UTC](https://community.thunkable.com/t/delete-row-containing-button-textinput/1030989/3 "2020-12-09T19:50:29Z")

</div>

Yes it’s a cloned object, a cloned row with Textinput and button, the button in this row should work as a delete button to delete the complete row.

---

<div class="post-metadata">

**Author:** ![kushweez](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kushweez/32/90265_2.png) [@kushweez](https://community.thunkable.com/u/kushweez)\
**Post date:** [December 9, 2020, 8:03pm UTC](https://community.thunkable.com/t/delete-row-containing-button-textinput/1030989/4 "2020-12-09T20:03:20Z")

</div>

Can you send me an image of the row you are cloning just to see what it looks like.

---

<div class="post-metadata">

**Author:** ![drted](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/drted/32/92694_2.png) [@drted](https://community.thunkable.com/u/drted)\
**Post date:** [December 9, 2020, 8:45pm UTC](https://community.thunkable.com/t/delete-row-containing-button-textinput/1030989/5 "2020-12-09T20:45:36Z")

</div>

I’ve had the same challenge. IF (big if) you do not have nested rows, you can loop through the screen rows collect, the loop through each button and check if the current button is you target. If it is, delete the current row.

If you have nested rows, it gets ugly. What I have done is overloaded the background picture property to identify the row.

Hopefully that help. DM me and we can hash out the details if you want.

---

<div class="post-metadata">

**Author:** ![kushweez](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kushweez/32/90265_2.png) [@kushweez](https://community.thunkable.com/u/kushweez)\
**Post date:** [December 9, 2020, 8:54pm UTC](https://community.thunkable.com/t/delete-row-containing-button-textinput/1030989/6 "2020-12-09T20:54:15Z")

</div>

I did the same thing for a Menu like uber but cloning is not the best I advise to use Create. The cloning is slower, the verification is more greedy.

 ![9e15ce316d9e4f6abe9e34ae9cb3f2a3](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/e/defa8f7c81ca46a22d5a262c7bf16fdf31b40d2f.gif)

---

<div class="post-metadata">

**Author:** ![Christian\_Sigge](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/christian_sigge/32/27756_2.png) [@Christian\_Sigge](https://community.thunkable.com/u/Christian_Sigge)\
**Post date:** [December 16, 2020, 11:33am UTC](https://community.thunkable.com/t/delete-row-containing-button-textinput/1030989/7 "2020-12-16T11:33:56Z")

</div>

Using Create is not an option for me until Thunkable provide access to more styling options.

---

<div class="post-metadata">

**Author:** ![Christian\_Sigge](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/christian_sigge/32/27756_2.png) [@Christian\_Sigge](https://community.thunkable.com/u/Christian_Sigge)\
**Post date:** [December 16, 2020, 11:37am UTC](https://community.thunkable.com/t/delete-row-containing-button-textinput/1030989/8 "2020-12-16T11:37:43Z")

</div>

I’m able to delete Rows now, but it always deletes the first row in my Column  
and not the row where I pressed the delete Button.  
Does anyone find the mistake in my Blocks?

 ![Bildschirmfoto 2020-12-16 um 12.29.41](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/0/e028224e9e460a6f551ed045a38af821d39fc761.png)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [December 16, 2020, 3:31pm UTC](https://community.thunkable.com/t/delete-row-containing-button-textinput/1030989/9 "2020-12-16T15:31:11Z")

</div>

**Edit:** The “component” block returns an ID (a string of numbers and letters) and not just a simple integer.

See @drted’s solution below.

---

<div class="post-metadata">

**Author:** ![drted](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/drted/32/92694_2.png) [@drted](https://community.thunkable.com/u/drted)\
**Post date:** [December 16, 2020, 4:01pm UTC](https://community.thunkable.com/t/delete-row-containing-button-textinput/1030989/10 "2020-12-16T16:01:11Z")

</div>

Try this.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/d/bd56d9fba6fe2cb93ceae29d322a4a3d2aafcdff.png)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [December 16, 2020, 4:16pm UTC](https://community.thunkable.com/t/delete-row-containing-button-textinput/1030989/11 "2020-12-16T16:16:08Z")

</div>

I was going to suggest that but I saw in a couple places (e.g. the official documentation) that people suggested just Remove component as a solution… I’m curious if it’s that simple.

---

<div class="post-metadata">

**Author:** ![drted](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/drted/32/92694_2.png) [@drted](https://community.thunkable.com/u/drted)\
**Post date:** [December 16, 2020, 4:37pm UTC](https://community.thunkable.com/t/delete-row-containing-button-textinput/1030989/12 "2020-12-16T16:37:09Z")

</div>

If you just remove the component, the row will remain. If the row is empty and sized to contents, that would work. But if there is other stuff in the row, you have to find the row.

Additionally, if there are NESTED rows, every parent contains the button and this solution can delete any one of the nested rows. So it MOSTLY works in MOST situations.

Of course, any and all of that could change at any time. Kind of like the Remove Block is no longer available, even with all of the beta features turned off.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [December 16, 2020, 5:32pm UTC](https://community.thunkable.com/t/delete-row-containing-button-textinput/1030989/13 "2020-12-16T17:32:41Z")

</div>

Sorry, yes, I misread and realize now they wanted to delete the **row** _containing_ the button.

---

<div class="post-metadata">

**Author:** ![Christian\_Sigge](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/christian_sigge/32/27756_2.png) [@Christian\_Sigge](https://community.thunkable.com/u/Christian_Sigge)\
**Post date:** [December 16, 2020, 7:02pm UTC](https://community.thunkable.com/t/delete-row-containing-button-textinput/1030989/14 "2020-12-16T19:02:57Z")

</div>

hello, thank you for trying to help me out, unfortunetly this is not working, with this constelation of blocks I cant delete any row.

---

<div class="post-metadata">

**Author:** ![drted](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/drted/32/92694_2.png) [@drted](https://community.thunkable.com/u/drted)\
**Post date:** [December 16, 2020, 7:14pm UTC](https://community.thunkable.com/t/delete-row-containing-button-textinput/1030989/16 "2020-12-16T19:14:39Z")

</div>

So sorry for a few errors @Christian_Sigge,

I think this will work

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/3/934e6af25e9ac9cadd8c16dbdd53d6a314f80ff1.png)

---

<div class="post-metadata">

**Author:** ![Christian\_Sigge](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/christian_sigge/32/27756_2.png) [@Christian\_Sigge](https://community.thunkable.com/u/Christian_Sigge)\
**Post date:** [December 16, 2020, 7:21pm UTC](https://community.thunkable.com/t/delete-row-containing-button-textinput/1030989/17 "2020-12-16T19:21:36Z")

</div>

indeed its working 😁 👍 👍 👍  
fantastic thank you very much

---

<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, 12:19pm UTC](https://community.thunkable.com/t/delete-row-containing-button-textinput/1030989/18 "2024-11-08T12:19:41Z")

</div>


