destroy
Prepares the Switch for safe removal from DOM. Detaches all event handlers and removes jQuery.data attributes to avoid memory leaks. Calls the destroy method of any child Kendo UI widgets.
The
destroymethod does not remove the Switch element from DOM.
Example
<input id="switch" />
<script>
    var switchInstance = $("#switch").kendoSwitch().data("kendoSwitch");
    switchInstance.destroy();
</script>In this article