destroy
Prepares the widget for safe removal from DOM. Detaches all event handlers and removes data associated with the widget.
Example
<form id="form">
<input name="firstName" />
<button id="smartPasteButton"></button>
</form>
<script>
var smartPasteButton = $("#smartPasteButton").kendoSmartPasteButton({
service: {
url: "https://api.example.com/smart-paste"
}
}).data("kendoSmartPasteButton");
smartPasteButton.destroy();
</script>