# Automatic Time Based Deletion of Rows

**URL:** <https://community.glideapps.com/t/automatic-time-based-deletion-of-rows/23888>\
**Category:** Feature Requests\
**Created:** [March 7, 2021, 4:48am UTC](https://community.glideapps.com/t/automatic-time-based-deletion-of-rows/23888 "2021-03-07T04:48:43Z")\
**Posts on this page:** 1\
**Showing post:** 13

<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:** [December 5, 2022, 5:46pm UTC](https://community.glideapps.com/t/automatic-time-based-deletion-of-rows/23888/13 "2022-12-05T17:46:24Z")

</div>

There are no automations in glide. Everything is controlled through user activated actions.

I’ve recently implemented a process to “archive” rows in a table (in my case I change the row owner email so it is no longer owned by anyone). A similar process could be done to delete rows. Right now I archive one row at a time. I talk more about it here.

> [@Auto Archiving, Sanity Check, Reusable Forms, etc](https://community.glideapps.com/t/auto-archiving-sanity-check-reusable-forms-etc/44544):
>
> I wanted to share a few techniques that I just implemented in my app. A little background…I’m building a process in my app that will replace the email address with a template value. What it does is replace user@email.com with ARCHIVE-user@email.com. The email column is a row owner column. Once ARCHIVE is appended to the email, it becomes an unowned row and is permanently hidden from the app. I’m doing this in an effort to speed up my app by hiding data that’s more than 2 years old. Unowned…

A similar method could be used to delete rows instead of marking them as archived.

Recently Glide opened up the option to delete multiple rows at once through a relation. What I think you could do is create an action somewhere in your app, so when a user clicks a button or views an item in a list, you could perform the delete action. All you need is a relation that only links to rows that are more than 30 days old, much like what I did in my app. In my case, it’s anything older than 2 years. You would just need a math column to find the number of days between now and a date on your table, then an of column to return ‘true’ or some other value if the number is greater than 30, then in whichever table would be used with the action, create a template column with the word ‘true’ and build a relation linking true to true.

> [@new Deleting multiple rows from a delete action](https://community.glideapps.com/t/deleting-multiple-rows-from-a-delete-action/54734):
>
> It has finally arrived.

It’s not automated, but with the user simply using the app and calling the action, it will be the user that initiates the delete.

---

_[View the full topic](https://community.glideapps.com/t/automatic-time-based-deletion-of-rows/23888)._
