# Delete Attached Chat

**URL:** <https://community.glideapps.com/t/delete-attached-chat/71691>\
**Category:** Ask for Help\
**Created:** [March 14, 2024, 7:22pm UTC](https://community.glideapps.com/t/delete-attached-chat/71691 "2024-03-14T19:22:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tkd\_hayden](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tkd_hayden/32/67200_2.png) [@tkd\_hayden](https://community.glideapps.com/u/tkd_hayden)\
**Post date:** [March 14, 2024, 7:22pm UTC](https://community.glideapps.com/t/delete-attached-chat/71691/1 "2024-03-14T19:22:53Z")

</div>

I’ve attached a chat log to a projects log. When we approve the project we delete the project log data but I can’t figure out how to also trigger deleting the chat log data attached to that project. Any advice would be appreciated!

---

<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:** [March 14, 2024, 7:37pm UTC](https://community.glideapps.com/t/delete-attached-chat/71691/2 "2024-03-14T19:37:55Z")

</div>

If you have a relation linking the project to the rows in the chat table, then you should be able to set up your delete button with a custom action. The first action will delete all chat rows through the relation, then have a Wait For action to wait until all chat rows are deleted, then finish it off with a third action that deletes the project row.
