# Chat messages are deleted in a certain time

**URL:** <https://community.glideapps.com/t/chat-messages-are-deleted-in-a-certain-time/11162>\
**Category:** Feature Requests\
**Created:** [June 20, 2020, 5:36am UTC](https://community.glideapps.com/t/chat-messages-are-deleted-in-a-certain-time/11162 "2020-06-20T05:36:35Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Roberto\_Salim](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/roberto_salim/32/6861_2.png) [@Roberto\_Salim](https://community.glideapps.com/u/Roberto_Salim)\
**Post date:** [June 20, 2020, 7:23am UTC](https://community.glideapps.com/t/chat-messages-are-deleted-in-a-certain-time/11162/2 "2020-06-20T07:23:37Z")

</div>

Hello, I don’t know if I’m the right person to present you with a solution, you’ll most certainly find it here.

I am also looking for something similar, what came to my mind was to create a script that erases the lines, and you schedule it to fire at 00hs.

This is the code, if you’re wrong, colleagues will correct it.

**function dell() {  
var spreadsheet = SpreadsheetApp.getActive().getSheetByName(“App: Comments”); //tab name to be deleted  
spreadsheet.getRange(‘A:F’).activate(); //delete from column A: F  
spreadsheet.getActiveRangeList().clear({contentsOnly: true, skipFilteredRows: true});  
};**

---

_[View the full topic](https://community.glideapps.com/t/chat-messages-are-deleted-in-a-certain-time/11162)._
