code: function destroyInstance() {
    const {
      selection, datum, destroy, index,
    } = getInstance(this);
    selection.selectAll('*').each(destroyDescendant);
    const transition = destroy(selection, datum, index);
    (transition || selection).remove();
  }
docs: Destroys the component instance and its descendant component instances.