# Clear cell after set time

**URL:** <https://community.glideapps.com/t/clear-cell-after-set-time/6323>\
**Category:** Ask for Help\
**Created:** [April 2, 2020, 7:05pm UTC](https://community.glideapps.com/t/clear-cell-after-set-time/6323 "2020-04-02T19:05:38Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [April 3, 2020, 1:43am UTC](https://community.glideapps.com/t/clear-cell-after-set-time/6323/4 "2020-04-03T01:43:23Z")

</div>

This is the script I use:

```auto
function clearRange() {
   //replace 'Sheet1' with your actual sheet name
   //replace 'Range' with the range you want to clear
   var sheet = SpreadsheetApp.getActive().getSheetByName('Sheet1);
   sheet.getRange('Range').clearContent();
}

```

 ![Screen Shot 2020-04-02 at 9.42.59 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/7/79cdcf4a1ed25407c1c6a872a897b1918897b894.png)

---

_[View the full topic](https://community.glideapps.com/t/clear-cell-after-set-time/6323)._
