# Deleting selected data/row in a table

**URL:** <https://community.tulip.co/t/deleting-selected-data-row-in-a-table/13939>\
**Category:** Support, Troubleshooting, & Help\
**Created:** [February 25, 2025, 6:58am UTC](https://community.tulip.co/t/deleting-selected-data-row-in-a-table/13939 "2025-02-25T06:58:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![JoelBGT](https://avatars.discourse-cdn.com/v4/letter/j/839c29/32.png) [@JoelBGT](https://community.tulip.co/u/JoelBGT)\
**Post date:** [February 25, 2025, 6:58am UTC](https://community.tulip.co/t/deleting-selected-data-row-in-a-table/13939/1 "2025-02-25T06:58:26Z")

</div>

Sorry that I’m asking this much in the last few weeks, but I keep having problems creating my apps…

This time I want to delete a selected row/selectet data from a table on my app. In the test surrounding it works perfectly, but if I play the app in my Tulip player, this failure comes up. Wht did I do wrong?

 ![Screenshot 2025-02-25 074849](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/c/c18beb04f1697f87ff21556bcbca5d182531ffb6.png)  
 ![Screenshot 2025-02-25 075740](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/0/008363202c5fc966d0aad9ce4a5e92a3affcf310.png)

---

<div class="post-metadata">

**Author:** ![thorsten.langner](https://avatars.discourse-cdn.com/v4/letter/t/4bbf92/32.png) [@thorsten.langner](https://community.tulip.co/u/thorsten.langner)\
**Post date:** [February 25, 2025, 8:46am UTC](https://community.tulip.co/t/deleting-selected-data-row-in-a-table/13939/2 "2025-02-25T08:46:16Z")

</div>

If you selected the record, it is in use, and therefore can not be deleted.

You need to:

- save the ID of the active record into a Variable
- clear the table record place holder
- delete the record by the ID of the variable

Hope that helps

---

<div class="post-metadata">

**Author:** ![JoelBGT](https://avatars.discourse-cdn.com/v4/letter/j/839c29/32.png) [@JoelBGT](https://community.tulip.co/u/JoelBGT)\
**Post date:** [February 25, 2025, 9:41am UTC](https://community.tulip.co/t/deleting-selected-data-row-in-a-table/13939/3 "2025-02-25T09:41:58Z")

</div>

Thank you for your fast answer. Right now I didn’t know how to do this 😃 I need to show/display the selected row with all its data next to the table. And then, if needed, I want to delete this selected and displayed row.

I don’t know if this works and if yes, I don’t know how to make it.

---

<div class="post-metadata">

**Author:** ![jmlowden](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tulip.co/jmlowden/32/8645_2.png) [@jmlowden](https://community.tulip.co/u/jmlowden)\
**Post date:** [February 25, 2025, 3:09pm UTC](https://community.tulip.co/t/deleting-selected-data-row-in-a-table/13939/4 "2025-02-25T15:09:11Z")

</div>

You could make the delete button trigger clear the record placeholder first then delete the record.

---

<div class="post-metadata">

**Author:** ![JoelBGT](https://avatars.discourse-cdn.com/v4/letter/j/839c29/32.png) [@JoelBGT](https://community.tulip.co/u/JoelBGT)\
**Post date:** [February 26, 2025, 7:27am UTC](https://community.tulip.co/t/deleting-selected-data-row-in-a-table/13939/7 "2025-02-26T07:27:05Z")

</div>

I don’t know whats the probleme here, I did it like you said, the delete button clears the record placeholder and than it should delete the record… The first step works, the placeholder becomes empty, also the row in the table after that, but it doesn’t work to delete the row. That same error as shown as in the screenshot comes up… ☹

I’v tried it with variables instead of an table placeholder, so that the selected data from the table is displayed in variables, not in a table placeholder… Quiet the same here, the button clears the variable, but the error comes up too, that is is not possible to delete the row in the table

---

<div class="post-metadata">

**Author:** ![thorsten.langner](https://avatars.discourse-cdn.com/v4/letter/t/4bbf92/32.png) [@thorsten.langner](https://community.tulip.co/u/thorsten.langner)\
**Post date:** [February 26, 2025, 8:31am UTC](https://community.tulip.co/t/deleting-selected-data-row-in-a-table/13939/8 "2025-02-26T08:31:12Z")

</div>

Your Trigger should be like this:  
(TEST IMAGE is the table name here…)

 ![image](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/1/1b21c61fd8902bd9888bb38ddf299ad6781bc674.png)

If Record is selected → save the ID to a variable → clear the Placeholder → delete the record by the ID saved before…

---

<div class="post-metadata">

**Author:** ![JoelBGT](https://avatars.discourse-cdn.com/v4/letter/j/839c29/32.png) [@JoelBGT](https://community.tulip.co/u/JoelBGT)\
**Post date:** [February 27, 2025, 1:57pm UTC](https://community.tulip.co/t/deleting-selected-data-row-in-a-table/13939/9 "2025-02-27T13:57:38Z")

</div>

Thank you, finally it works and I can go on and get my work done 😃
