# Button to delete rows by age

**URL:** <https://community.glideapps.com/t/button-to-delete-rows-by-age/84998>\
**Category:** Ask for Help\
**Created:** [October 20, 2025, 4:29pm UTC](https://community.glideapps.com/t/button-to-delete-rows-by-age/84998 "2025-10-20T16:29:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mauro\_Candreva](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mauro_candreva/32/84458_2.png) [@Mauro\_Candreva](https://community.glideapps.com/u/Mauro_Candreva)\
**Post date:** [October 20, 2025, 4:29pm UTC](https://community.glideapps.com/t/button-to-delete-rows-by-age/84998/1 "2025-10-20T16:29:32Z")

</div>

I want to create a button that deletes rows that are older than 40 days.  
I inserted a button and selected the action **“Delete row this item”** , but I can’t understand how to configure a filter that connects it to the rows in a table containing information older than 40 days.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [October 20, 2025, 4:30pm UTC](https://community.glideapps.com/t/button-to-delete-rows-by-age/84998/2 "2025-10-20T16:30:26Z")

</div>

Create a Query or Relation that selects the rows you want to delete. Then direct your Delete action to use that Query or Relation instead of “This Item”

---

<div class="post-metadata">

**Author:** ![Mauro\_Candreva](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mauro_candreva/32/84458_2.png) [@Mauro\_Candreva](https://community.glideapps.com/u/Mauro_Candreva)\
**Post date:** [October 20, 2025, 9:19pm UTC](https://community.glideapps.com/t/button-to-delete-rows-by-age/84998/3 "2025-10-20T21:19:33Z")

</div>

Thank You.
