This API lets you clear the existing messages in the chat window.
CopiedZohoSalesIQ.Chat.clearMessages()
ZohoSalesIQ.Chat.clearMessages()