# Delet row depending on value

**URL:** <https://community.glideapps.com/t/delet-row-depending-on-value/50025>\
**Category:** Ask for Help\
**Created:** [September 23, 2022, 8:05pm UTC](https://community.glideapps.com/t/delet-row-depending-on-value/50025 "2022-09-23T20:05:54Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Moiforfun](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/moiforfun/32/39904_2.png) [@Moiforfun](https://community.glideapps.com/u/Moiforfun)\
**Post date:** [September 23, 2022, 8:05pm UTC](https://community.glideapps.com/t/delet-row-depending-on-value/50025/1 "2022-09-23T20:05:54Z")

</div>

Hello,  
I’m trying to do something to delete a row based on the value (false or true in my case).  
(Deleting a user’s row after they delete their account).

The action → Delet row seems to not be able to do it in my case.

I’ve read several articles about deleting a row but I haven’t really found how to apply it.  
i’have found some javascript with row id and checkMatch but i’m not sure how to use it

Thank in avance

---

<div class="post-metadata">

**Author:** ![DarrenHumphries](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darrenhumphries/32/91715_2.png) [@DarrenHumphries](https://community.glideapps.com/u/DarrenHumphries)\
**Post date:** [September 23, 2022, 8:19pm UTC](https://community.glideapps.com/t/delet-row-depending-on-value/50025/2 "2022-09-23T20:19:50Z")

</div>

One way to do this would be to have a button that first changes a property in their profile, maybe something like a column that saves “delete” as the value if they press the button. Do this with a set column.

Then a second button (you could do this with a confirmation like “Are you sure?”) the action would have a condition to check the value of the “delete” column mentioned above and if it meets the condition you delete the row.

---

<div class="post-metadata">

**Author:** ![Moiforfun](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/moiforfun/32/39904_2.png) [@Moiforfun](https://community.glideapps.com/u/Moiforfun)\
**Post date:** [September 23, 2022, 8:26pm UTC](https://community.glideapps.com/t/delet-row-depending-on-value/50025/3 "2022-09-23T20:26:28Z")

</div>

i’have one column (on the table where the row should be delet) with the checkbox if the user is delete but i don’t know how to delet them after

but if i try to use one button with the action delete the row, i’haven’t find a way to specific witch row

---

<div class="post-metadata">

**Author:** ![DarrenHumphries](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darrenhumphries/32/91715_2.png) [@DarrenHumphries](https://community.glideapps.com/u/DarrenHumphries)\
**Post date:** [September 23, 2022, 8:52pm UTC](https://community.glideapps.com/t/delet-row-depending-on-value/50025/4 "2022-09-23T20:52:27Z")

</div>

Oh, you can’t do it for a list of records, you would need to do this each row at a time. If you want to delete a number of items you would need to do it from your data source or in the data editor.

---

<div class="post-metadata">

**Author:** ![Moiforfun](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/moiforfun/32/39904_2.png) [@Moiforfun](https://community.glideapps.com/u/Moiforfun)\
**Post date:** [September 24, 2022, 10:10am UTC](https://community.glideapps.com/t/delet-row-depending-on-value/50025/5 "2022-09-24T10:10:59Z")

</div>

And from the tables, I have a way to delete rows based on their value ?  
other than selecting them manually

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [September 24, 2022, 2:24pm UTC](https://community.glideapps.com/t/delet-row-depending-on-value/50025/6 "2022-09-24T14:24:31Z")

</div>

No, you don’t.

There’s no easy way to mass delete rows, what I would do is:

- Create a relation setup to return all the rows matching your condition to delete.

- Use a joined list column to join all rowIDs from that relation.

- Send that list to Make/Zapier and iterate through them to delete one by one via a HTTP call.

That’s assuming we’re talking about Glide Tables. If you have them in Google Sheets, do a filter in Sheets and delete all rows from that filter.

---

<div class="post-metadata">

**Author:** ![Gideon\_Lahav\_Busines](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gideon_lahav_busines/32/41121_2.png) [@Gideon\_Lahav\_Busines](https://community.glideapps.com/u/Gideon_Lahav_Busines)\
**Post date:** [September 24, 2022, 4:12pm UTC](https://community.glideapps.com/t/delet-row-depending-on-value/50025/7 "2022-09-24T16:12:10Z")

</div>

Hi @Moiforfun, you will need to use automation as @ThinhDinh said.

If you use Google spreadsheet, I can build a script that can do that for you.

Best Wishes,  
Gideon

---

<div class="post-metadata">

**Author:** ![Moiforfun](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/moiforfun/32/39904_2.png) [@Moiforfun](https://community.glideapps.com/u/Moiforfun)\
**Post date:** [September 24, 2022, 5:54pm UTC](https://community.glideapps.com/t/delet-row-depending-on-value/50025/8 "2022-09-24T17:54:15Z")

</div>

Damn was hoping we have a way in glide.

Thank everyone for your anwser and help

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [September 25, 2022, 5:54pm UTC](https://community.glideapps.com/t/delet-row-depending-on-value/50025/9 "2022-09-25T17:54:16Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
