# Clearing chat history

**URL:** https://community.glideapps.com/t/clearing-chat-history/82288
**Category:** Ask for Help
**Created:** [June 6, 2025, 3:27pm UTC](https://community.glideapps.com/t/clearing-chat-history/82288 "2025-06-06T15:27:12Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Patrick\_Lee](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/patrick_lee/32/84589_2.png) [@Patrick\_Lee](https://community.glideapps.com/u/Patrick_Lee)
#### Post date: [June 6, 2025, 3:27pm UTC](https://community.glideapps.com/t/clearing-chat-history/82288/1 "2025-06-06T15:27:12Z")

</div>

I’ve been using Glide’s Chat feature for interacting with a “makeshift” AI Assistant in our app. But I noticed that there’s no option to auto-clear or trim off old chats so there’s a lot of scrolling when you’ve got a long chat history. Has anyone tackled this problem? Or have a workaround for this? What’s my best approach for keeping the chat histories tidy for all users?

Cheers,  
Patrick

---

<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: [June 6, 2025, 5:31pm UTC](https://community.glideapps.com/t/clearing-chat-history/82288/2 "2025-06-06T17:31:03Z")

</div>

You could probably do some with a query that only selects messages older than a certain date or something like that, and then add an After Submit action that deletes those rows through the query.

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [June 6, 2025, 11:02pm UTC](https://community.glideapps.com/t/clearing-chat-history/82288/3 "2025-06-06T23:02:15Z")

</div>

An alternative to what Jeff suggested above is creating a scheduled workflow that runs at a chosen time everyday.

You want to have a column that calculates how much time it has been since the row has been created.

Create a loop through the table and filter for rows that have the number above larger than a threshold, and delete each of them.

Please note that scheduled workflows would see time calculation at the timezone UTC.
