# Video sdk Toolkit in ios user chat history how to clear

**URL:** <https://devforum.zoom.us/t/video-sdk-toolkit-in-ios-user-chat-history-how-to-clear/116084>\
**Category:** iOS\
**Tags:** video-sdk\
**Created:** [August 21, 2024, 2:18pm UTC](https://devforum.zoom.us/t/video-sdk-toolkit-in-ios-user-chat-history-how-to-clear/116084 "2024-08-21T14:18:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ghanshyampateltest](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ghanshyampateltest/32/61736_2.png) [@ghanshyampateltest](https://devforum.zoom.us/u/ghanshyampateltest)\
**Post date:** [August 21, 2024, 2:18pm UTC](https://devforum.zoom.us/t/video-sdk-toolkit-in-ios-user-chat-history-how-to-clear/116084/1 "2024-08-21T14:18:26Z")

</div>

chat history how to clear chat history when i am joining call

---

<div class="post-metadata">

**Author:** ![rehema.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rehema.zoom/32/40323_2.png) [@rehema.zoom](https://devforum.zoom.us/u/rehema.zoom)\
**Post date:** [August 22, 2024, 1:08pm UTC](https://devforum.zoom.us/t/video-sdk-toolkit-in-ios-user-chat-history-how-to-clear/116084/2 "2024-08-22T13:08:58Z")

</div>

Hi @ghanshyampateltest ,

Thanks for your question. If I’m understanding correctly, you can add in functionality to clear your chat history with an event listener. At a high level, you’d use the `user-added` [event](https://marketplacefront.zoom.us/sdk/custom/web/modules/VideoClient.html#on) to listen for a user joining the call. Then you can create and pass in a function to [get chat history](https://marketplacefront.zoom.us/sdk/custom/web/modules/ChatClient.html#getHistory), and then clear the returned array.

Thanks,  
Rehema

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [September 21, 2024, 11:09pm UTC](https://devforum.zoom.us/t/video-sdk-toolkit-in-ios-user-chat-history-how-to-clear/116084/3 "2024-09-21T23:09:10Z")

</div>

Closed on September 21, 2024, 11:09pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
