# Delete row when timer hits 0

**URL:** https://community.glideapps.com/t/delete-row-when-timer-hits-0/29077
**Category:** Ask for Help
**Created:** [July 14, 2021, 12:42pm UTC](https://community.glideapps.com/t/delete-row-when-timer-hits-0/29077 "2021-07-14T12:42:54Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Rogelio](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/rogelio/32/1054_2.png) [@Rogelio](https://community.glideapps.com/u/Rogelio)
#### Post date: [July 14, 2021, 12:42pm UTC](https://community.glideapps.com/t/delete-row-when-timer-hits-0/29077/1 "2021-07-14T12:42:54Z")

</div>

Hi all,

just wondering if the following is achievable…

I have created a timer that counts down from x to 0 mins, is there a way to trigger an action eg; delete row when the timer hits 0?

---

<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: [July 14, 2021, 12:45pm UTC](https://community.glideapps.com/t/delete-row-when-timer-hits-0/29077/2 "2021-07-14T12:45:26Z")

</div>

No. Actions can only be initiated by a user. If it’s in a google sheet, you could set up a google script to handle the delete.

Otherwise, you can simply hide the row once the time has passed.

---

<div class="post-metadata">

### Author: ![Rogelio](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/rogelio/32/1054_2.png) [@Rogelio](https://community.glideapps.com/u/Rogelio)
#### Post date: [July 14, 2021, 12:52pm UTC](https://community.glideapps.com/t/delete-row-when-timer-hits-0/29077/3 "2021-07-14T12:52:06Z")

</div>

thanks for responding Jeff.

The data is on a glide-table and due to sync delay issues across devices it needs to continue to be on a glide-table 😕

---

<div class="post-metadata">

### Author: ![Simon\_Hill](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/simon_hill/32/94730_2.png) [@Simon\_Hill](https://community.glideapps.com/u/Simon_Hill)
#### Post date: [July 14, 2021, 1:23pm UTC](https://community.glideapps.com/t/delete-row-when-timer-hits-0/29077/4 "2021-07-14T13:23:44Z")

</div>

I expect you could play with the visibility of a component, e.g. state that something is in/visible for as long as Now is \> StartTime + X seconds.

---

<div class="post-metadata">

### Author: ![Rogelio](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/rogelio/32/1054_2.png) [@Rogelio](https://community.glideapps.com/u/Rogelio)
#### Post date: [July 14, 2021, 10:50pm UTC](https://community.glideapps.com/t/delete-row-when-timer-hits-0/29077/5 "2021-07-14T22:50:59Z")

</div>

Thanks, I get that you can un/hide, but in my case is a little more complicated than that.

I’m working on a jobs queue system for Drivers.

When a Driver views a job a row to a glide-table is created with the date/time the Driver opened the job, via relations and roll-ups, the very first Driver is allowed 5 mins (hence the timer) to either Accept or Release the job back to the queue. Since I can’t safely rely on the Driver to religiously Release the job, when the timer hits 0 I’d like to be able to delete that row so that the next Driver gets an opportunity to asses the job.

I know using google-sheets is achievable via scripting etc. but is not as effective due to the sync issues between glide-google and across all Driver devices. Hence why the use of glide-table is imperative.

---

<div class="post-metadata">

### Author: ![Simon\_Hill](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/simon_hill/32/94730_2.png) [@Simon\_Hill](https://community.glideapps.com/u/Simon_Hill)
#### Post date: [July 15, 2021, 10:04am UTC](https://community.glideapps.com/t/delete-row-when-timer-hits-0/29077/6 "2021-07-15T10:04:10Z")

</div>

Ok - you cannot trust the current user to check the status. But that’s OK. You should simply automate the check when the next user interacts with the App.

BUT all this could all be avoided if you stopped creating temporary rows in a separate sheet. Instead, work with all your jobs in 1 sheet then have a Date/Time column that shows when a job was last viewed. Your list of available jobs can then be filtered by jobs that have a Time entry that is not less than 5 minutes. This will make any job vanish from user’s screens if it is opened/viewed by another person.

Only when a job is accepted should you delete the job from the main list and create a new row in a different sheet with the new owner.

---

<div class="post-metadata">

### Author: ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)
#### Post date: [July 15, 2021, 10:16am UTC](https://community.glideapps.com/t/delete-row-when-timer-hits-0/29077/7 "2021-07-15T10:16:54Z")

</div>

The best way to do it, is to create user-specific columns for temporary data, any user can work on these and when accepted, have an action to add a row and set columns with data from US columns… this method has also one more plus… if the user comes back there, whatever he fill up is still there… unless you don’t want that, then clear values when going there.  
click this [SAMPLE](https://test-sa.glideapp.io/dl/ewAiAHQAIgA6ADcALAAiAHMAIgA6ACIAbQBlAG4AdQAtADIANABmAGMAMgBhAGQAZgAtADcANwAzADQALQA0ADcANAA2AC0AYQA5AGIAZAAtADYANgBhADIAMwBiAGQAYQAxAGMANQBjAC0AMQBmADIAZgA5ADUAMQA4AGUANgA1ADEAMAAyAGUAOAA5ADIAMABmAGEAOQBmADgAMABiAGQANgBiAGMAYgAzACIALAAiAHIAIgA6ACIANgBCAFgAaQBYAHcAQgA1AFIAMgBHAHYAaQBxAEYAYQBMADYAdgBZAGsAQQAiACwAIgBuACIAOgAiAHMAZQBtAGEAcABoAG8AcgBlACAAbQBlAGMAaABhAG4AaQBzAG0AIABuAG8AbgAgAGwAbwBnAGkAbgAiAH0A)

[![Screen Shot 2021-07-15 at 6.20.09 AM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/6/e6d5b911b33f8f6334e1c6e38e4192d5b65aa98f.png)](https://test-sa.glideapp.io/dl/ewAiAHQAIgA6ADcALAAiAHMAIgA6ACIAbQBlAG4AdQAtADIANABmAGMAMgBhAGQAZgAtADcANwAzADQALQA0ADcANAA2AC0AYQA5AGIAZAAtADYANgBhADIAMwBiAGQAYQAxAGMANQBjAC0AMQBmADIAZgA5ADUAMQA4AGUANgA1ADEAMAAyAGUAOAA5ADIAMABmAGEAOQBmADgAMABiAGQANgBiAGMAYgAzACIALAAiAHIAIgA6ACIANgBCAFgAaQBYAHcAQgA1AFIAMgBHAHYAaQBxAEYAYQBMADYAdgBZAGsAQQAiACwAIgBuACIAOgAiAHMAZQBtAGEAcABoAG8AcgBlACAAbQBlAGMAaABhAG4AaQBzAG0AIABuAG8AbgAgAGwAbwBnAGkAbgAiAH0A)

---

<div class="post-metadata">

### Author: ![Simon\_Hill](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/simon_hill/32/94730_2.png) [@Simon\_Hill](https://community.glideapps.com/u/Simon_Hill)
#### Post date: [July 15, 2021, 12:54pm UTC](https://community.glideapps.com/t/delete-row-when-timer-hits-0/29077/8 "2021-07-15T12:54:26Z")

</div>

Not sure I agree Uzo. With a user specific column a job’s status will not show up for other users, e.g. as someone opens a job to check for interest…

---

<div class="post-metadata">

### Author: ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)
#### Post date: [July 15, 2021, 12:58pm UTC](https://community.glideapps.com/t/delete-row-when-timer-hits-0/29077/9 "2021-07-15T12:58:24Z")

</div>

it will… because you will add row to non user specific columns… USC is only for temporary use… ones they submit… action… add row with values from USC

---

<div class="post-metadata">

### Author: ![Simon\_Hill](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/simon_hill/32/94730_2.png) [@Simon\_Hill](https://community.glideapps.com/u/Simon_Hill)
#### Post date: [July 16, 2021, 9:28am UTC](https://community.glideapps.com/t/delete-row-when-timer-hits-0/29077/10 "2021-07-16T09:28:47Z")

</div>

Why would you add a row to non specific column when you can set column? Just set the time and the user email? I think you are adding unnecessary complexity.

---

<div class="post-metadata">

### Author: ![Mariano\_Betta](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mariano_betta/32/17895_2.png) [@Mariano\_Betta](https://community.glideapps.com/u/Mariano_Betta)
#### Post date: [July 16, 2021, 11:36am UTC](https://community.glideapps.com/t/delete-row-when-timer-hits-0/29077/11 "2021-07-16T11:36:39Z")

</div>

Hello.  
Wouldn’t it help you to cancel the queue?  
When the driver views the job, the row with date / time is created.  
It would make a TEMPLATE column with the current date time.  
I would make another column where the driver ACCEPTS or NO.  
It would do another IF-THEN-ELSE column, when the timer reaches zero, if it was not ACCEPTED it is RETURN IN QUEUE.

---

<div class="post-metadata">

### Author: ![Rogelio](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/rogelio/32/1054_2.png) [@Rogelio](https://community.glideapps.com/u/Rogelio)
#### Post date: [July 18, 2021, 2:53am UTC](https://community.glideapps.com/t/delete-row-when-timer-hits-0/29077/12 "2021-07-18T02:53:42Z")

</div>

Thanks all for your suggestions and feedback…your suggestions for accepting a job can work one way or another fine.

But my issue is more a sync issue across devices.

Since all the jobs are on a google-sheet, whether you write the Date/Time value, the Email of the owner or use user-specific columns there is a massive delay to replicate those values written to the google-sheet across all devices for any un/hide conditions to work well.

Hence, the best approach I have found thus far is to have temporary rows on a glide-table, as any values that have been written there are near-instantly replicated across all devices and hence hide/unhide conditions work well.
