#  \[Help\] Delete rows after specified time

**URL:** https://community.glideapps.com/t/help-delete-rows-after-specified-time/22611
**Category:** Ask for Help
**Created:** [February 11, 2021, 10:14am UTC](https://community.glideapps.com/t/help-delete-rows-after-specified-time/22611 "2021-02-11T10:14:42Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Minerva](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/minerva/32/21391_2.png) [@Minerva](https://community.glideapps.com/u/Minerva)
#### Post date: [February 11, 2021, 10:14am UTC](https://community.glideapps.com/t/help-delete-rows-after-specified-time/22611/1 "2021-02-11T10:14:42Z")

</div>

Hello, I would like to know some script for Google Sheet that allows me to delete a line after the event has occurred.

I have a reservation application and I want to delete the data when the date of the same has passed

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [February 11, 2021, 10:17am UTC](https://community.glideapps.com/t/help-delete-rows-after-specified-time/22611/2 "2021-02-11T10:17:31Z")

</div>

You should be able to adapt the script linked below to do that.

> [@Scripts, scripts, scripts!](https://community.glideapps.com/t/scripts-scripts-scripts/18965/70):
>
> @Drearystate @Wiz.Wazeer - hey guys, have either of you actually tried to execute the above script? As it is, it is severely broken, and there is also one fundamental implementation flaw. The most serious issue is this: The above loop starts at the top of the sheet and works its way down, deleting any rows that match the IF condition. The problem with this is that as soon as the first row is deleted, all the remaining index numbers are offset by 1, and so when it hits the next row to be delet…
