Remove the chat widget

Last updated March 26, 2019

HubSpotConversations.widget.remove()

This endpoint is part of our developer preview program, and should be considered as a non-stable release that will be subject to bugs and breaking changes while under development. Please take this into account as you build against a release. Please subscribe to our changelog for updates.

Remove the widget from the page. If the widget is not present on the page, this is a no-op. To display the widget again, a full page refresh will have to occur, or one can invoke widget.load.

Note: This is not the same as closing the widget, as it will be unavailable to the visitor. See widget.close to close the widget without removing it from the page.