How to remove the contact details after end chat - Javascript | The place for Zendesk users to come together and share
Skip to main content
September 2, 2021
Question

How to remove the contact details after end chat - Javascript

  • September 2, 2021
  • 1 reply
  • 20 views

How can I remove the contact details (name, email) after ending a chat.

I was able to end the chat using 

window.zE('webWidget', 'chat:end');

but unable to remove the contact details.

    1 reply

    Employee
    September 3, 2021

    https://developer.zendesk.com/api-reference/widget/core/#logout

    You will want to use the Web Widget logout function.

    -Ramin